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

Felix Yan felixonmars at archlinux.org
Fri Jul 31 06:46:02 UTC 2020


    Date: Friday, July 31, 2020 @ 06:46:01
  Author: felixonmars
Revision: 666039

archrelease: copy trunk to community-x86_64

Added:
  haskell-filtrable/repos/community-x86_64/
  haskell-filtrable/repos/community-x86_64/PKGBUILD
    (from rev 666038, haskell-filtrable/trunk/PKGBUILD)

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

Copied: haskell-filtrable/repos/community-x86_64/PKGBUILD (from rev 666038, haskell-filtrable/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2020-07-31 06:46:01 UTC (rev 666039)
@@ -0,0 +1,47 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=filtrable
+pkgname=haskell-filtrable
+pkgver=0.1.4.0
+pkgrel=1
+pkgdesc="Class of filtrable containers"
+url="https://github.com/strake/filtrable.hs"
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs')
+makedepends=('ghc')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
+sha512sums=('b7273d3da947d1ded1544f04ecda3439abb0f606877fc3dc271d186c8f470bd87fb537953cf7cb186bd74656adf0b442d7c3d0d6a565a5a23969428e990f256c')
+
+prepare() {
+    cd $_hkgname-$pkgver
+    echo -e "import Distribution.Simple\nmain = defaultMain" > Setup.hs
+}
+
+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