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

Felix Yan felixonmars at archlinux.org
Tue Feb 9 01:02:10 UTC 2021


    Date: Tuesday, February 9, 2021 @ 01:02:10
  Author: felixonmars
Revision: 850778

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: haskell-xdg-basedir/repos/community-staging-x86_64/PKGBUILD (from rev 850777, haskell-xdg-basedir/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-02-09 01:02:10 UTC (rev 850778)
@@ -0,0 +1,42 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=xdg-basedir
+pkgname=haskell-xdg-basedir
+pkgver=0.2.2
+pkgrel=9
+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 $MAKEFLAGS
+    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