tvl-depot/arch/PKGBUILD

40 lines
860 B
Text
Raw Normal View History

# Maintainer: Vincent Ambo <dev@tazj.in>
pkgname=tazblog
2014-04-16 12:25:19 +02:00
pkgver=4.2
pkgrel=1
pkgdesc="Tazjin's blog written in Haskell"
arch=('i686' 'x86_64')
url="http://tazj.in"
2014-03-19 12:21:43 +01:00
license=('MIT')
makedepends=('ghc' 'cabal-install')
source=(https://bitbucket.org/tazjin/tazblog-haskell/get/$pkgver.tar.gz)
2014-04-16 12:25:19 +02:00
md5sums=('SKIP')
build() {
cd "$srcdir"
cd tazjin-*
cabal update
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
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
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/"
}