summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitri 'phaazon' Sabadie2015-06-17 18:56:45 +0200
committerDimitri 'phaazon' Sabadie2015-06-17 18:56:45 +0200
commit20129c0a3a45d831fb9e0710e00a89d17c50281a (patch)
tree097add7752386a3f9e81063d1344f83a44be62ff
downloadaur-haskell-al.tar.gz
Initial revision.
-rw-r--r--.SRCINFO17
-rwxr-xr-xPKGBUILD39
-rwxr-xr-xhaskell-al.install17
3 files changed, 73 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..045efe16868
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = haskell-al
+ pkgdesc = OpenAL haskell raw API
+ pkgver = 0.1.3.2
+ pkgrel = 1
+ url = https://hackage.haskell.org/package/al
+ install = haskell-al.install
+ arch = any
+ license = custom:BSD3
+ makedepends = ghc<7.11
+ depends = openal<1.17
+ depends = haskell-mtl>=2.1
+ depends = haskell-mtl<2.3
+ source = http://hackage.haskell.org/package/al-0.1.3.2/al-0.1.3.2.tar.gz
+ md5sums = 2a68d1fa2afb93c9d37a3d324226f00a
+
+pkgname = haskell-al
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100755
index 00000000000..ae1c9bd1e25
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,39 @@
+# Maintainer: Dimitri Sabadie <dimitri.sabadie@gmail.com>
+
+_hspkgname=al
+pkgname=haskell-al
+pkgver=0.1.3.2
+pkgrel=1
+pkgdesc='OpenAL haskell raw API'
+arch=('any')
+url=https://hackage.haskell.org/package/$_hspkgname
+license=('custom:BSD3')
+depends=('openal<1.17' 'haskell-mtl>=2.1' 'haskell-mtl<2.3')
+makedepends=('ghc<7.11')
+install=$pkgname.install
+source=("http://hackage.haskell.org/package/$_hspkgname-$pkgver/$_hspkgname-$pkgver.tar.gz")
+md5sums=('2a68d1fa2afb93c9d37a3d324226f00a')
+
+build() {
+ cd $_hspkgname-$pkgver
+ runhaskell Setup configure -O2 \
+ --enable-shared \
+ --prefix=/usr \
+ --docdir=/usr/share/doc/$pkgname
+ runhaskell Setup build
+ runhaskell Setup haddock --hyperlink-source
+ runhaskell Setup register --gen-script
+ runhaskell Setup unregister --gen-script
+}
+
+package() {
+ cd $srcdir/$_hspkgname-$pkgver
+
+ install -D -m644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
+ install -D -m744 CHANGELOG.md $pkgdir/usr/share/$pkgname/CHANGELOG.md
+
+ install -D -m744 register.sh $pkgdir/usr/share/$pkgname/register.sh
+ install -D -m744 unregister.sh $pkgdir/usr/share/$pkgname/unregister.sh
+
+ runhaskell Setup copy --destdir=$pkgdir
+}
diff --git a/haskell-al.install b/haskell-al.install
new file mode 100755
index 00000000000..023c853e65e
--- /dev/null
+++ b/haskell-al.install
@@ -0,0 +1,17 @@
+pkgname=haskell-al
+
+post_install() {
+ /usr/share/$pkgname/register.sh
+}
+
+pre_upgrade() {
+ /usr/share/$pkgname/unregister.sh
+}
+
+post_upgrade() {
+ /usr/share/$pkgname/register.sh
+}
+
+pre_remove() {
+ /usr/share/$pkgname/unregister.sh
+}