[arch-commits] Commit in haskell-optparse-simple/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Tue Nov 28 10:53:12 UTC 2017
Date: Tuesday, November 28, 2017 @ 10:53:11
Author: felixonmars
Revision: 270477
upgpkg: haskell-optparse-simple 0.1.0-1
rebuild with either,5 hasql,1.1.1 hasql-pool,0.4.3 hasql-transaction,0.5.2
Modified:
haskell-optparse-simple/trunk/PKGBUILD
----------+
PKGBUILD | 19 ++++++++++++-------
1 file changed, 12 insertions(+), 7 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-11-28 10:47:24 UTC (rev 270476)
+++ PKGBUILD 2017-11-28 10:53:11 UTC (rev 270477)
@@ -4,22 +4,22 @@
_hkgname=optparse-simple
pkgname=haskell-optparse-simple
-pkgver=0.0.4
-pkgrel=2
+pkgver=0.1.0
+pkgrel=1
pkgdesc="Simple interface to optparse-applicative"
url="https://hackage.haskell.org/package/${_hkgname}"
license=("custom:BSD3")
arch=('x86_64')
-depends=('ghc-libs' "haskell-either" "haskell-gitrev" "haskell-optparse-applicative")
+depends=('ghc-libs' 'haskell-gitrev' 'haskell-optparse-applicative')
makedepends=('ghc')
source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
-sha512sums=('fe0c740d6af00312bb811b6aed61c4c0ed2e0b33060dde5653c061ca3f9a6960fd606c67f3dd49a2614ce6c6efe8ee76d596c3a85edbce32dd87f5b294fb9d28')
+sha512sums=('28c2fca4e33bc6f942e0c849cc1082ff575dad6a9954201cff41a19b3996299bbbe899a939b81dcc4aae2ab2ac1ef4cfc946c92fd70f4644268727640cf3ed81')
build() {
cd "${srcdir}/${_hkgname}-${pkgver}"
-
+
runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
- --prefix=/usr --docdir="/usr/share/doc/${pkgname}" \
+ --prefix=/usr --docdir="/usr/share/doc/${pkgname}" --enable-tests \
--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
runhaskell Setup build
runhaskell Setup register --gen-script
@@ -28,9 +28,14 @@
sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
}
+check() {
+ cd $_hkgname-$pkgver
+ runhaskell Setup test
+}
+
package() {
cd "${srcdir}/${_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}"
More information about the arch-commits
mailing list