.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:
Vincent Ambo 2014-08-22 18:56:57 +02:00
parent 8d2fefec8f
commit 3a86d653ce
No known key found for this signature in database
GPG key ID: 66F505681DB8F43B
3 changed files with 15 additions and 6 deletions

6
.dockerignore Normal file
View file

@ -0,0 +1,6 @@
dist
res
src
tools
arch/pkg
arch/src

View file

@ -12,3 +12,6 @@ $(ARCH_PKG):
docker: archpkg
cat Dockerfile.raw | envsubst > Dockerfile; \
docker build -t tazjin/tazblog .
clean:
rm -rf dist arch/*.pkg.tar.xz arch/pkg arch/src arch/*. Dockerfile

View file

@ -7,23 +7,23 @@ arch=('i686' 'x86_64')
url="http://tazj.in"
license=('MIT')
makedepends=('ghc' 'cabal-install')
source=(https://bitbucket.org/tazjin/tazblog-haskell/get/$pkgver.tar.gz)
md5sums=('SKIP')
source=('tazblog@.service')
sha1sums=('6aeb901a9d0e25763c9c99168a440dd5ac99ffc1')
build() {
cd "$srcdir"
cd tazjin-*
test -e blog-src || ln -fs ../../ blog-src
cd blog-src
cabal update
cabal sandbox init
cabal update
cabal install -j --only-dependencies
cabal build
}
package() {
cd "$srcdir"
cd tazjin-*
cd blog-src
# Install blog itself
install -d "${pkgdir}/usr/bin"