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

Felix Yan felixonmars at archlinux.org
Thu Jun 17 00:29:07 UTC 2021


    Date: Thursday, June 17, 2021 @ 00:29:07
  Author: felixonmars
Revision: 964485

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-iwlib/repos/community-staging-x86_64/
  haskell-iwlib/repos/community-staging-x86_64/PKGBUILD
    (from rev 964484, haskell-iwlib/trunk/PKGBUILD)

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

Copied: haskell-iwlib/repos/community-staging-x86_64/PKGBUILD (from rev 964484, haskell-iwlib/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-06-17 00:29:07 UTC (rev 964485)
@@ -0,0 +1,39 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+_hkgname=iwlib
+pkgname=haskell-iwlib
+pkgver=0.1.0
+pkgrel=18
+pkgdesc='Binding to the iw library for getting info about the current WiFi connection'
+url='https://hackage.haskell.org/package/iwlib'
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'wireless_tools')
+makedepends=('ghc')
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/jaor/iwlib/archive/${pkgver}.tar.gz)
+sha512sums=('0d1bfd8e716c811d73c9d7802385138edc43193fb7b0c6f1620cf5b2e51c06b30fa537af925a7cdf193d0b247a71a82a574fac0ab6f721799c01a2a0c71f3dbc')
+
+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 haddock
+    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 -Dm 744 register.sh "${pkgdir}/usr/share/haskell/register/${pkgname}.sh"
+  install -Dm 744 unregister.sh "${pkgdir}/usr/share/haskell/unregister/${pkgname}.sh"
+  install -dm 755 "${pkgdir}/usr/share/doc/ghc/html/libraries"
+  runhaskell Setup copy --destdir="$pkgdir"
+
+  install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+  install -Dm 644 readme.md -t "${pkgdir}/usr/share/doc/${pkgname}"
+  ln -s /usr/share/doc/${pkgname}/html "${pkgdir}/usr/share/doc/ghc/html/libraries/${_hkgname}"
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list