[arch-commits] Commit in (4 files)
Felix Yan
felixonmars at archlinux.org
Tue Sep 8 21:41:53 UTC 2020
Date: Tuesday, September 8, 2020 @ 21:41:53
Author: felixonmars
Revision: 701354
addpkg: haskell-atomic-primops 0.8.3-1
Added:
haskell-atomic-primops/
haskell-atomic-primops/repos/
haskell-atomic-primops/trunk/
haskell-atomic-primops/trunk/PKGBUILD
----------+
PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
Added: haskell-atomic-primops/trunk/PKGBUILD
===================================================================
--- haskell-atomic-primops/trunk/PKGBUILD (rev 0)
+++ haskell-atomic-primops/trunk/PKGBUILD 2020-09-08 21:41:53 UTC (rev 701354)
@@ -0,0 +1,42 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=atomic-primops
+pkgname=haskell-atomic-primops
+pkgver=0.8.3
+pkgrel=1
+pkgdesc="A safe approach to CAS and other atomic ops in Haskell"
+url="https://github.com/rrnewton/haskell-lockfree/wiki"
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-primitive')
+makedepends=('ghc')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
+sha512sums=('c92371741ea6e0a0208d539abea73c53269b155f3dc84ebea7b20afab5882852756a0c15fdc309c9a9d6ad575589d8f8a99adb9117bbe3d7465d97b17af08b09')
+
+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 $MAKEFLAGS
+ 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"
+ install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+ rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}
More information about the arch-commits
mailing list