[arch-commits] Commit in haskell-optparse-generic/repos/community-staging-x86_64 (2 files)
Felix Yan
felixonmars at archlinux.org
Sun Aug 2 20:38:03 UTC 2020
Date: Sunday, August 2, 2020 @ 20:38:03
Author: felixonmars
Revision: 667864
archrelease: copy trunk to community-staging-x86_64
Added:
haskell-optparse-generic/repos/community-staging-x86_64/PKGBUILD
(from rev 667863, haskell-optparse-generic/trunk/PKGBUILD)
Deleted:
haskell-optparse-generic/repos/community-staging-x86_64/PKGBUILD
----------+
PKGBUILD | 91 ++++++++++++++++++++++++++++---------------------------------
1 file changed, 43 insertions(+), 48 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2020-08-02 20:37:51 UTC (rev 667863)
+++ PKGBUILD 2020-08-02 20:38:03 UTC (rev 667864)
@@ -1,48 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-_hkgname=optparse-generic
-pkgname=haskell-optparse-generic
-pkgver=1.4.1
-pkgrel=2
-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-void')
-makedepends=('ghc')
-source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
-sha512sums=('2ee4f4e06ef38a3a35c20019d5bef550489da262fd4a87f1487ac9f2c240120372633df19cb132b2178de9debbda7df7790dee65c1948d1d0788335bb64de104')
-
-prepare() {
- cd $_hkgname-$pkgver
- sed -i -e '/semigroups/d' -e 's/bytestring *< 0.11,/bytestring < 0.11/' $_hkgname.cabal
-}
-
-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
-}
Copied: haskell-optparse-generic/repos/community-staging-x86_64/PKGBUILD (from rev 667863, haskell-optparse-generic/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-08-02 20:38:03 UTC (rev 667864)
@@ -0,0 +1,43 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=optparse-generic
+pkgname=haskell-optparse-generic
+pkgver=1.4.2
+pkgrel=1
+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-void')
+makedepends=('ghc')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
+sha512sums=('c67f605cfa2ba0155f1f738e1e98fa7968e62d8ed82c34a11f3494afe0eab1e6c2642bfd16a7a29d9f35332590f10a17dbef4978b1eff339fe86052c23beb044')
+
+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