[arch-commits] Commit in (4 files)
Felix Yan
felixonmars at archlinux.org
Fri Mar 13 13:01:59 UTC 2020
Date: Friday, March 13, 2020 @ 13:01:58
Author: felixonmars
Revision: 595936
addpkg: haskell-gi-overloading 1.0-1
Added:
haskell-gi-overloading/
haskell-gi-overloading/repos/
haskell-gi-overloading/trunk/
haskell-gi-overloading/trunk/PKGBUILD
----------+
PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
Added: haskell-gi-overloading/trunk/PKGBUILD
===================================================================
--- haskell-gi-overloading/trunk/PKGBUILD (rev 0)
+++ haskell-gi-overloading/trunk/PKGBUILD 2020-03-13 13:01:58 UTC (rev 595936)
@@ -0,0 +1,42 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=haskell-gi-overloading
+pkgname=haskell-gi-overloading
+pkgver=1.0
+pkgrel=1
+pkgdesc="Overloading support for haskell-gi"
+url="https://github.com/haskell-gi/haskell-gi-overloading"
+license=("BSD")
+arch=('any')
+depends=('ghc-libs')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('8e303e0a360133ecaa238352d410cc63e29584933b5449478bac743e0a5af678c9bf6b26857accfb7f34b8637d2cd1a0bd59ac5d5b1e74177e563b66f9f9a673')
+
+build() {
+ cd $_hkgname-$pkgver
+
+ runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
+ --prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \
+ --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+ runhaskell Setup build
+ runhaskell Setup register --gen-script
+ runhaskell Setup unregister --gen-script
+ sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
+ sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+check() {
+ cd $_hkgname-$pkgver
+ runhaskell Setup test
+}
+
+package() {
+ cd $_hkgname-$pkgver
+
+ install -D -m744 register.sh "$pkgdir"/usr/share/haskell/register/$pkgname.sh
+ install -D -m744 unregister.sh "$pkgdir"/usr/share/haskell/unregister/$pkgname.sh
+ runhaskell Setup copy --destdir="$pkgdir"
+ rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}
More information about the arch-commits
mailing list