about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVincent Ambo <dev@tazj.in>2014-03-11T18·06+0100
committerVincent Ambo <dev@tazj.in>2014-03-11T18·06+0100
commit01c49a8ff21da5ce80c1b8456bae796b34a36b0e (patch)
tree449ad570db7114c887214f6e430e5fc424e4e4d5
parent16ef5deace7a51ae711e16b9c67f73c3e0d5b63c (diff)
Added first version of ArchLinux PKGBUILD
-rw-r--r--arch/PKGBUILD31
1 files changed, 31 insertions, 0 deletions
diff --git a/arch/PKGBUILD b/arch/PKGBUILD
new file mode 100644
index 000000000000..ce1ed66b88eb
--- /dev/null
+++ b/arch/PKGBUILD
@@ -0,0 +1,31 @@
+# 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-*
+  
+  cabal sandbox init
+  cabal install -j --only-dependencies
+  cabal build
+}
+
+package() {
+  cd "$srcdir"
+  cd tazjin-*
+
+  install -d "${pkgdir}/usr/bin"
+  install -m755 dist/build/tazblog/tazblog "${pkgdir}/usr/bin/tazblog"
+
+  install -d "${pkgdir}/usr/share/tazblog"
+  cp -r res/ "${pkgdir}/usr/share/tazblog"
+}