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

Levente Polyak anthraxx at archlinux.org
Thu Mar 8 00:13:03 UTC 2018


    Date: Thursday, March 8, 2018 @ 00:13:02
  Author: anthraxx
Revision: 304155

archrelease: copy trunk to community-x86_64

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

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

Copied: haskell-iwlib/repos/community-x86_64/PKGBUILD (from rev 304154, haskell-iwlib/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2018-03-08 00:13:02 UTC (rev 304155)
@@ -0,0 +1,39 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+_hkgname=iwlib
+pkgname=haskell-iwlib
+pkgver=0.1.0
+pkgrel=1
+pkgdesc='Binding to the iw library for getting info about the current WiFi connection'
+url='http://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
+    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