[arch-commits] Commit in haskell-bindings-uname/repos (2 files)

Felix Yan felixonmars at gemini.archlinux.org
Mon Jan 10 17:03:36 UTC 2022


    Date: Monday, January 10, 2022 @ 17:03:35
  Author: felixonmars
Revision: 1099517

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-bindings-uname/repos/community-staging-x86_64/
  haskell-bindings-uname/repos/community-staging-x86_64/PKGBUILD
    (from rev 1099516, haskell-bindings-uname/trunk/PKGBUILD)

----------+
 PKGBUILD |   36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

Copied: haskell-bindings-uname/repos/community-staging-x86_64/PKGBUILD (from rev 1099516, haskell-bindings-uname/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2022-01-10 17:03:35 UTC (rev 1099517)
@@ -0,0 +1,36 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=bindings-uname
+pkgname=haskell-bindings-uname
+pkgver=0.1
+pkgrel=22
+pkgdesc="Low-level binding to POSIX uname(3)"
+url="https://hackage.haskell.org/package/bindings-uname"
+license=("custom:PublicDomain")
+arch=('x86_64')
+depends=('ghc-libs')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('e668b8524cd35e0558d2321f8b89e5b8f9666d43c6950a4b8e56468a84d4664bd7f6c679160fd85370ba3109fb38c00d15bf0ece9da548affcba7ec375b8b394')
+
+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 --ghc-option=-fllvm
+    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"
+}



More information about the arch-commits mailing list