[arch-commits] Commit in haskell-unix-compat/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Wed Jun 16 23:42:58 UTC 2021
Date: Wednesday, June 16, 2021 @ 23:42:58
Author: felixonmars
Revision: 964410
archrelease: copy trunk to community-staging-x86_64
Added:
haskell-unix-compat/repos/community-staging-x86_64/
haskell-unix-compat/repos/community-staging-x86_64/PKGBUILD
(from rev 964409, haskell-unix-compat/trunk/PKGBUILD)
----------+
PKGBUILD | 40 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
Copied: haskell-unix-compat/repos/community-staging-x86_64/PKGBUILD (from rev 964409, haskell-unix-compat/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2021-06-16 23:42:58 UTC (rev 964410)
@@ -0,0 +1,40 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Daniel Nagy <danielnagy at gmx de>
+# Contributor: Lex Black <autumn-wind at web dot de>
+# Contributor: Don Stewart <dons at galois.com>
+
+pkgname=haskell-unix-compat
+_hkgname=unix-compat
+pkgver=0.5.3
+pkgrel=4
+pkgdesc="Portable POSIX-compatibility layer."
+url="https://github.com/jacobstanley/unix-compat"
+license=('BSD3')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-old-time')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('f31b91f0ca45e163bc2a0d4a51722dbe06ac76ffb32065280cff6d0ff345a6265dc0a384f31705cb3f63171c514d5ff0f0b0d066e8fe06d63c5e377d5f814d8d')
+
+build() {
+ cd $_hkgname-$pkgver
+
+ runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
+ --prefix=/usr --docdir=/usr/share/doc/$pkgname \
+ --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
+}
+
+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