[arch-commits] Commit in haskell-fclabels/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Wed Feb 14 06:28:34 UTC 2018
Date: Wednesday, February 14, 2018 @ 06:28:33
Author: felixonmars
Revision: 294028
upgpkg: haskell-fclabels 2.0.3.3-1
rebuild with fclabels,2.0.3.3
Modified:
haskell-fclabels/trunk/PKGBUILD
----------+
PKGBUILD | 27 +++++++++++++--------------
1 file changed, 13 insertions(+), 14 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2018-02-14 06:22:47 UTC (rev 294027)
+++ PKGBUILD 2018-02-14 06:28:33 UTC (rev 294028)
@@ -4,28 +4,22 @@
_hkgname=fclabels
pkgname=haskell-fclabels
-pkgver=2.0.3.2
-pkgrel=5
+pkgver=2.0.3.3
+pkgrel=1
pkgdesc="First class accessor labels implemented as lenses."
url="https://github.com/sebastiaanvisser/fclabels"
license=("custom:BSD3")
arch=('x86_64')
-depends=('ghc-libs' "haskell-mtl")
-makedepends=('ghc')
+depends=('ghc-libs' 'haskell-mtl')
+makedepends=('ghc' 'haskell-hunit')
source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
-sha512sums=('b0ffc33344e441b6da6eef3de96f5e7633f00258b41623ddc58217eaaa12cbdd9d6cc3007eb279fadc79885289af2865043381c1714d73192ee2cf41d302f8df')
+sha512sums=('0c0f7ed886b65a80aea4e19b5763d7b91ce948b63f86d507ecf0b6874716a190752e0806957c71e0ed0ed97422ba3d09a2be0c82588c8dabfd647474c1a33cff')
-prepare() {
- sed -e 's/, template-haskell >= 2.2 && < 2.12/, template-haskell >= 2.2/' \
- -e 's/base >= 4.5 && < 4.10/base >= 4.5/' \
- -i $_hkgname-$pkgver/$_hkgname.cabal
-}
-
build() {
- cd "${srcdir}/${_hkgname}-${pkgver}"
+ 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
runhaskell Setup build
runhaskell Setup register --gen-script
@@ -34,8 +28,13 @@
sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
}
+check() {
+ cd $_hkgname-$pkgver
+ runhaskell Setup test
+}
+
package() {
- cd "${srcdir}/${_hkgname}-${pkgver}"
+ 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"
More information about the arch-commits
mailing list