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

Felix Yan felixonmars at gemini.archlinux.org
Thu Mar 3 17:45:35 UTC 2022


    Date: Thursday, March 3, 2022 @ 17:45:35
  Author: felixonmars
Revision: 1140933

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 1140932, haskell-versions/trunk/PKGBUILD)

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

Copied: haskell-versions/repos/community-staging-x86_64/PKGBUILD (from rev 1140932, haskell-versions/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2022-03-03 17:45:35 UTC (rev 1140933)
@@ -0,0 +1,48 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=versions
+pkgname=haskell-versions
+pkgver=5.0.2
+pkgrel=5
+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=('a38f19e5d9b48ff4a610471615f0f75461b4445dab53a651e7f02729e68a6516d0ad1f21006d947dbff6298b301a1e42c983f2eb9fda1ef852936df6199bae29')
+
+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 --ghc-option=-fllvm
+    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 --show-details=direct
+}
+
+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