Date: Thursday, May 17, 2018 @ 18:52:24
  Author: felixonmars
Revision: 324034

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 324033, haskell-iwlib/trunk/PKGBUILD)

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

Copied: haskell-iwlib/repos/community-staging-x86_64/PKGBUILD (from rev 324033, 
haskell-iwlib/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-05-17 18:52:24 UTC (rev 324034)
@@ -0,0 +1,39 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+_hkgname=iwlib
+pkgname=haskell-iwlib
+pkgver=0.1.0
+pkgrel=2
+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:

Reply via email to