.dockerignore, make clean and new PKGBUILD
- Added .dockerignore file - added make target for cleaning up - modified PKGBUILD to build in symlink to checkout (yeah this isn't really how you build Arch packages but that's besides the point! :))
This commit is contained in:
parent
8d2fefec8f
commit
3a86d653ce
3 changed files with 15 additions and 6 deletions
6
.dockerignore
Normal file
6
.dockerignore
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
dist
|
||||||
|
res
|
||||||
|
src
|
||||||
|
tools
|
||||||
|
arch/pkg
|
||||||
|
arch/src
|
3
Makefile
3
Makefile
|
@ -12,3 +12,6 @@ $(ARCH_PKG):
|
||||||
docker: archpkg
|
docker: archpkg
|
||||||
cat Dockerfile.raw | envsubst > Dockerfile; \
|
cat Dockerfile.raw | envsubst > Dockerfile; \
|
||||||
docker build -t tazjin/tazblog .
|
docker build -t tazjin/tazblog .
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -rf dist arch/*.pkg.tar.xz arch/pkg arch/src arch/*. Dockerfile
|
||||||
|
|
|
@ -7,23 +7,23 @@ arch=('i686' 'x86_64')
|
||||||
url="http://tazj.in"
|
url="http://tazj.in"
|
||||||
license=('MIT')
|
license=('MIT')
|
||||||
makedepends=('ghc' 'cabal-install')
|
makedepends=('ghc' 'cabal-install')
|
||||||
source=(https://bitbucket.org/tazjin/tazblog-haskell/get/$pkgver.tar.gz)
|
source=('tazblog@.service')
|
||||||
md5sums=('SKIP')
|
sha1sums=('6aeb901a9d0e25763c9c99168a440dd5ac99ffc1')
|
||||||
|
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "$srcdir"
|
cd "$srcdir"
|
||||||
cd tazjin-*
|
test -e blog-src || ln -fs ../../ blog-src
|
||||||
|
cd blog-src
|
||||||
|
|
||||||
cabal update
|
|
||||||
cabal sandbox init
|
cabal sandbox init
|
||||||
|
cabal update
|
||||||
cabal install -j --only-dependencies
|
cabal install -j --only-dependencies
|
||||||
cabal build
|
cabal build
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd "$srcdir"
|
cd "$srcdir"
|
||||||
cd tazjin-*
|
cd blog-src
|
||||||
|
|
||||||
# Install blog itself
|
# Install blog itself
|
||||||
install -d "${pkgdir}/usr/bin"
|
install -d "${pkgdir}/usr/bin"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue