[arch-commits] Commit in haskell-doctest-driver-gen/repos (2 files)
Felix Yan
felixonmars at gemini.archlinux.org
Thu Nov 11 23:16:55 UTC 2021
Date: Thursday, November 11, 2021 @ 23:16:55
Author: felixonmars
Revision: 1042585
archrelease: copy trunk to community-staging-x86_64
Added:
haskell-doctest-driver-gen/repos/community-staging-x86_64/
haskell-doctest-driver-gen/repos/community-staging-x86_64/PKGBUILD
(from rev 1042584, haskell-doctest-driver-gen/trunk/PKGBUILD)
----------+
PKGBUILD | 45 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 45 insertions(+)
Copied: haskell-doctest-driver-gen/repos/community-staging-x86_64/PKGBUILD (from rev 1042584, haskell-doctest-driver-gen/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2021-11-11 23:16:55 UTC (rev 1042585)
@@ -0,0 +1,45 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=doctest-driver-gen
+pkgname=haskell-doctest-driver-gen
+pkgver=0.3.0.4
+pkgrel=19
+pkgdesc="Generate driver file for doctest's cabal integration"
+url="https://github.com/Hexirp/doctest-driver-gen#readme"
+license=("BSD")
+arch=('x86_64')
+depends=('ghc-libs')
+makedepends=('ghc' 'haskell-doctest')
+source=("https://hackage.haskell.org/packages/archive/$_hkgname/$pkgver/$_hkgname-$pkgver.tar.gz")
+sha512sums=('dfbf140634ac0baf6be68ea14b0129db975ef05f4ac08c22851ad890a1a601fce7faf046b6d15c5f4422df273a3b67e3a05ebe03b6a4b746266f65588bfe6021')
+
+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 --ghc-option=-fllvm \
+ --ghc-option=-optl-Wl\,-z\,relro\,-z\,now \
+ --ghc-option='-pie'
+
+ LD_LIBRARY_PATH="$PWD/dist/build" 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
+ LD_LIBRARY_PATH="$PWD/dist/build" PATH="$PWD/dist/build/doctest-driver-gen:$PATH" runhaskell Setup test --show-details=direct
+}
+
+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 -t "$pkgdir"/usr/share/licenses/$pkgname/
+ rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}
More information about the arch-commits
mailing list