Date: Thursday, September 27, 2018 @ 19:32:57 Author: felixonmars Revision: 386743
archrelease: copy trunk to community-staging-x86_64 Added: haskell-path-io/repos/community-staging-x86_64/ haskell-path-io/repos/community-staging-x86_64/PKGBUILD (from rev 386742, haskell-path-io/trunk/PKGBUILD) ----------+ PKGBUILD | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) Copied: haskell-path-io/repos/community-staging-x86_64/PKGBUILD (from rev 386742, haskell-path-io/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2018-09-27 19:32:57 UTC (rev 386743) @@ -0,0 +1,44 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Daniel Nagy <danielnagy at gmx de> +# Contributor: Daniel Micay <danielmi...@gmail.com> + +_hkgname=path-io +pkgname=haskell-path-io +pkgver=1.4.0 +pkgrel=12 +pkgdesc="Interface to ‘directory’ package for users of ‘path’" +url="https://github.com/mrkkrp/path-io" +license=("custom:BSD3") +arch=('x86_64') +depends=('ghc-libs' 'haskell-dlist' 'haskell-exceptions' 'haskell-path' 'haskell-temporary' + 'haskell-unix-compat') +makedepends=('ghc') +source=("https://hackage.haskell.org/packages/archive/$_hkgname/$pkgver/$_hkgname-${pkgver}.tar.gz") +sha512sums=('fa1df1b807e4e1c148dbcb8b26bc6607ff5ccffdb452605b289e8325dfda0d78acdbe57ad9e9b2ad2b1b242af4dcf99c01437dc3b902009731a032837e35412f') + +prepare() { + cd $_hkgname-$pkgver +} + +build() { + cd "$srcdir/$_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 \ + -f-dev + runhaskell Setup build + 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 "${srcdir}/${_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" + install -D -m644 "LICENSE.md" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.md" + rm -f "$pkgdir/usr/share/doc/$pkgname/LICENSE.md" +}