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

Felix Yan felixonmars at gemini.archlinux.org
Fri Dec 31 06:29:04 UTC 2021


    Date: Friday, December 31, 2021 @ 06:29:04
  Author: felixonmars
Revision: 1089606

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

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

Copied: haskell-versions/repos/community-staging-x86_64/PKGBUILD (from rev 1089605, haskell-versions/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-12-31 06:29:04 UTC (rev 1089606)
@@ -0,0 +1,48 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=versions
+pkgname=haskell-versions
+pkgver=5.0.1
+pkgrel=2
+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=('a74d2bf3b96e75b5d41d522d1bd13aba63d92d87a057453298d4a34a6e54b123fb768b57537928f8962ca7277fe2e4c864f02f5926680a39f48a1238c35b5e33')
+
+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