[arch-commits] Commit in haskell-primitive/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Thu Apr 23 14:37:04 UTC 2020
Date: Thursday, April 23, 2020 @ 14:37:03
Author: felixonmars
Revision: 618203
archrelease: copy trunk to community-staging-x86_64
Added:
haskell-primitive/repos/community-staging-x86_64/
haskell-primitive/repos/community-staging-x86_64/PKGBUILD
(from rev 618202, haskell-primitive/trunk/PKGBUILD)
----------+
PKGBUILD | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
Copied: haskell-primitive/repos/community-staging-x86_64/PKGBUILD (from rev 618202, haskell-primitive/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2020-04-23 14:37:03 UTC (rev 618203)
@@ -0,0 +1,36 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Sergej Pupykin <pupykin.s+arch at gmail.com>
+
+pkgname=haskell-primitive
+pkgver=0.7.0.1
+pkgrel=2
+pkgdesc="Wrappers for primitive operations"
+url="https://hackage.haskell.org/package/primitive"
+license=("BSD")
+arch=('x86_64')
+depends=('ghc-libs')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/primitive/${pkgver}/primitive-${pkgver}.tar.gz")
+sha512sums=('bb9be965ff22bc3184962ce35f3b0ff3ad6a5bb42735ea0ea7e33d4a122a2833381b8f04950b3cc8a6ccd792f72f2b06a291c462c381b87044dd8e06240d093c')
+
+build() {
+ cd primitive-$pkgver
+ # TODO: tests
+ runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
+ --prefix=/usr --docdir=/usr/share/doc/$pkgname --disable-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
+}
+
+package() {
+ cd primitive-$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"
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/${pkgname}/LICENSE
+ rm -f "$pkgdir"/usr/share/doc/${pkgname}/LICENSE
+}
More information about the arch-commits
mailing list