[arch-commits] Commit in haskell-optparse-generic/repos (2 files)
Felix Yan
felixonmars at gemini.archlinux.org
Thu Dec 16 04:18:22 UTC 2021
Date: Thursday, December 16, 2021 @ 04:18:21
Author: felixonmars
Revision: 1073753
archrelease: copy trunk to community-staging-x86_64
Added:
haskell-optparse-generic/repos/community-staging-x86_64/
haskell-optparse-generic/repos/community-staging-x86_64/PKGBUILD
(from rev 1073752, haskell-optparse-generic/trunk/PKGBUILD)
----------+
PKGBUILD | 43 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
Copied: haskell-optparse-generic/repos/community-staging-x86_64/PKGBUILD (from rev 1073752, haskell-optparse-generic/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2021-12-16 04:18:21 UTC (rev 1073753)
@@ -0,0 +1,43 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=optparse-generic
+pkgname=haskell-optparse-generic
+pkgver=1.4.6
+pkgrel=8
+pkgdesc="Auto-generate a command-line parser for your datatype"
+url="https://github.com/Gabriel439/Haskell-Optparse-Generic-Library"
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-system-filepath' 'haskell-only' 'haskell-optparse-applicative'
+ 'haskell-transformers-compat' 'haskell-void')
+makedepends=('ghc')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
+sha512sums=('4e2a2e40684cc57dfa63d698764d8e248ccd8ec9b2e23a119fca3d1e81eeac8789d774c10b435d62c9aa480ddc52de646ab1116948cfd55b340e19a946f8d32c')
+
+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