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

Felix Yan felixonmars at archlinux.org
Sat Aug 17 03:22:37 UTC 2019


    Date: Saturday, August 17, 2019 @ 03:22:36
  Author: felixonmars
Revision: 499920

archrelease: copy trunk to community-x86_64

Added:
  haskell-xdg-basedir/repos/community-x86_64/
  haskell-xdg-basedir/repos/community-x86_64/PKGBUILD
    (from rev 499919, haskell-xdg-basedir/trunk/PKGBUILD)

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

Copied: haskell-xdg-basedir/repos/community-x86_64/PKGBUILD (from rev 499919, haskell-xdg-basedir/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2019-08-17 03:22:36 UTC (rev 499920)
@@ -0,0 +1,42 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=xdg-basedir
+pkgname=haskell-xdg-basedir
+pkgver=0.2.2
+pkgrel=1
+pkgdesc="A basic implementation of the XDG Base Directory specification"
+url="https://github.com/willdonnelly/xdg-basedir"
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs')
+makedepends=('ghc')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
+sha512sums=('4bd857ef8e0e21caff0e6e80ec9fe6f693e4f44b635e6d53c206905d8b08533d7de26d1bf58d7ef7ca3d818508b2d8d9490f6c301c95b9d37fa87e11d2f0346c')
+
+build() {
+    cd $_hkgname-$pkgver    
+    
+    runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
+        --prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \
+        --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+    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
+}
+
+check() {
+    cd $_hkgname-$pkgver
+    runhaskell Setup test
+}
+
+package() {
+    cd $_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" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+    rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE"
+}


More information about the arch-commits mailing list