[arch-commits] Commit in haskell-gi-overloading/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Fri Mar 13 13:06:39 UTC 2020
Date: Friday, March 13, 2020 @ 13:06:38
Author: felixonmars
Revision: 595938
archrelease: copy trunk to community-any
Added:
haskell-gi-overloading/repos/community-any/
haskell-gi-overloading/repos/community-any/PKGBUILD
(from rev 595937, haskell-gi-overloading/trunk/PKGBUILD)
----------+
PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
Copied: haskell-gi-overloading/repos/community-any/PKGBUILD (from rev 595937, haskell-gi-overloading/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2020-03-13 13:06:38 UTC (rev 595938)
@@ -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