Date: Monday, January 10, 2022 @ 17:49:03 Author: felixonmars Revision: 1099625
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 1099624, haskell-iwlib/trunk/PKGBUILD) ----------+ PKGBUILD | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) Copied: haskell-iwlib/repos/community-staging-x86_64/PKGBUILD (from rev 1099624, haskell-iwlib/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2022-01-10 17:49:03 UTC (rev 1099625) @@ -0,0 +1,39 @@ +# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org> +_hkgname=iwlib +pkgname=haskell-iwlib +pkgver=0.1.0 +pkgrel=19 +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 --ghc-option=-fllvm + 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: