[arch-commits] Commit in haskell-texmath/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Mon Nov 27 08:06:44 UTC 2017
Date: Monday, November 27, 2017 @ 08:06:41
Author: felixonmars
Revision: 269460
upgpkg: haskell-texmath 0.10-3
rebuild with ghc 8.2.2
Modified:
haskell-texmath/trunk/PKGBUILD
----------+
PKGBUILD | 15 ++++++++++-----
1 file changed, 10 insertions(+), 5 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-11-27 08:04:21 UTC (rev 269459)
+++ PKGBUILD 2017-11-27 08:06:41 UTC (rev 269460)
@@ -5,7 +5,7 @@
_hkgname=texmath
pkgname=haskell-texmath
pkgver=0.10
-pkgrel=2
+pkgrel=3
pkgdesc="Conversion between formats used to represent mathematics."
url="https://github.com/jgm/texmath"
license=("GPL")
@@ -12,15 +12,15 @@
arch=('x86_64')
depends=('ghc-libs' "haskell-mtl" "haskell-network-uri" "haskell-pandoc-types" "haskell-parsec"
"haskell-syb" "haskell-xml")
-makedepends=('ghc')
+makedepends=('ghc' 'haskell-split' 'haskell-temporary' 'haskell-utf8-string')
source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
sha512sums=('c940cdb30adf38fa131965430a53adb2e445ef9813a71187eda101fdfbfb55bd6b3842f8119c7c47edc22432e086068dcb68d7a649fca521a293731f4c44ab26')
build() {
cd $_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 \
-fnetwork-uri -f-executable
runhaskell Setup build
@@ -30,9 +30,14 @@
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}"
More information about the arch-commits
mailing list