[arch-commits] Commit in (4 files)
Felix Yan
felixonmars at archlinux.org
Fri Jul 31 06:45:48 UTC 2020
Date: Friday, July 31, 2020 @ 06:45:47
Author: felixonmars
Revision: 666038
addpkg: haskell-filtrable 0.1.4.0-1 (for new haskell-regex-applicative)
Added:
haskell-filtrable/
haskell-filtrable/repos/
haskell-filtrable/trunk/
haskell-filtrable/trunk/PKGBUILD
----------+
PKGBUILD | 47 +++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 47 insertions(+)
Added: haskell-filtrable/trunk/PKGBUILD
===================================================================
--- haskell-filtrable/trunk/PKGBUILD (rev 0)
+++ haskell-filtrable/trunk/PKGBUILD 2020-07-31 06:45:47 UTC (rev 666038)
@@ -0,0 +1,47 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=filtrable
+pkgname=haskell-filtrable
+pkgver=0.1.4.0
+pkgrel=1
+pkgdesc="Class of filtrable containers"
+url="https://github.com/strake/filtrable.hs"
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs')
+makedepends=('ghc')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
+sha512sums=('b7273d3da947d1ded1544f04ecda3439abb0f606877fc3dc271d186c8f470bd87fb537953cf7cb186bd74656adf0b442d7c3d0d6a565a5a23969428e990f256c')
+
+prepare() {
+ cd $_hkgname-$pkgver
+ echo -e "import Distribution.Simple\nmain = defaultMain" > Setup.hs
+}
+
+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