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

Felix Yan felixonmars at archlinux.org
Wed Mar 31 20:31:23 UTC 2021


    Date: Wednesday, March 31, 2021 @ 20:31:23
  Author: felixonmars
Revision: 910732

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-versions/repos/community-staging-x86_64/
  haskell-versions/repos/community-staging-x86_64/PKGBUILD
    (from rev 910731, haskell-versions/trunk/PKGBUILD)

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

Copied: haskell-versions/repos/community-staging-x86_64/PKGBUILD (from rev 910731, haskell-versions/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-03-31 20:31:23 UTC (rev 910732)
@@ -0,0 +1,48 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=versions
+pkgname=haskell-versions
+pkgver=4.0.3
+pkgrel=1
+pkgdesc="Types and parsers for software version numbers"
+url="https://github.com/fosskers/versions"
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-megaparsec' 'haskell-hashable' 'haskell-parser-combinators')
+makedepends=('ghc' 'uusi' 'haskell-microlens' 'haskell-quickcheck' 'haskell-tasty' 'haskell-tasty-hunit'
+             'haskell-tasty-quickcheck')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
+sha512sums=('2a3d74651cc54d96d251c68e9b6808d6f761f42a052f79b6317f53d0fa703fe6db957fdb8285656adf528ba510ec65419d954f6abd47279ca7eaf440b9214d5a')
+
+prepare() {
+    cd $_hkgname-$pkgver
+    gen-setup
+}
+
+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