.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
|
||||
cat Dockerfile.raw | envsubst > Dockerfile; \
|
||||
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"
|
||||
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"
|
||||
|
|
Loading…
Reference in a new issue