2014-03-11 19:06:03 +01:00
|
|
|
# Maintainer: Vincent Ambo <dev@tazj.in>
|
|
|
|
pkgname=tazblog
|
|
|
|
pkgver=4.1
|
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="Tazjin's blog written in Haskell"
|
|
|
|
arch=('i686' 'x86_64')
|
|
|
|
url="http://tazj.in"
|
|
|
|
makedepends=('ghc' 'cabal-install')
|
|
|
|
source=(https://bitbucket.org/tazjin/tazblog-haskell/get/$pkgver.tar.gz)
|
|
|
|
md5sums=('881e1e021b6cc0e95cdbda952520d059')
|
|
|
|
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "$srcdir"
|
|
|
|
cd tazjin-*
|
2014-03-11 19:08:49 +01:00
|
|
|
|
|
|
|
cabal update
|
2014-03-11 19:06:03 +01:00
|
|
|
cabal sandbox init
|
|
|
|
cabal install -j --only-dependencies
|
|
|
|
cabal build
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "$srcdir"
|
|
|
|
cd tazjin-*
|
|
|
|
|
2014-03-11 19:32:31 +01:00
|
|
|
# Install blog itself
|
2014-03-11 19:06:03 +01:00
|
|
|
install -d "${pkgdir}/usr/bin"
|
|
|
|
install -m755 dist/build/tazblog/tazblog "${pkgdir}/usr/bin/tazblog"
|
|
|
|
|
2014-03-11 19:32:31 +01:00
|
|
|
# Install resources
|
2014-03-11 19:06:03 +01:00
|
|
|
install -d "${pkgdir}/usr/share/tazblog"
|
|
|
|
cp -r res/ "${pkgdir}/usr/share/tazblog"
|
2014-03-11 19:32:31 +01:00
|
|
|
|
|
|
|
# Install service file
|
|
|
|
install -d "${pkgdir}/usr/lib/systemd/system"
|
|
|
|
cp "arch/tazblog@.service" "${pkgdir}/usr/lib/systemd/system/"
|
2014-03-11 19:06:03 +01:00
|
|
|
}
|