[arch-commits] Commit in haskell-tz/repos/community-x86_64 (PKGBUILD PKGBUILD)
Jelle van der Waa
jelle at archlinux.org
Sat Jan 4 19:39:27 UTC 2020
Date: Saturday, January 4, 2020 @ 19:39:26
Author: jelle
Revision: 548318
archrelease: copy trunk to community-x86_64
Added:
haskell-tz/repos/community-x86_64/PKGBUILD
(from rev 548317, haskell-tz/trunk/PKGBUILD)
Deleted:
haskell-tz/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 94 ++++++++++++++++++++++++++++++++-----------------------------
1 file changed, 50 insertions(+), 44 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2020-01-04 19:39:17 UTC (rev 548317)
+++ PKGBUILD 2020-01-04 19:39:26 UTC (rev 548318)
@@ -1,44 +0,0 @@
-
-_hkgname=tz
-pkgname=haskell-tz
-pkgver=0.1.3.3
-pkgrel=2
-pkgdesc='Efficient time zone handling'
-arch=(x86_64)
-url='https://hackage.haskell.org/package/tz'
-license=(BSD)
-depends=(ghc-libs haskell-vector haskell-data-default haskell-tzdata)
-makedepends=(ghc)
-source=("https://hackage.haskell.org/packages/archive/$_hkgname/$pkgver/$_hkgname-$pkgver.tar.gz")
-sha512sums=('54dacfde056e5f860062e1dcf9fe9a384e8725bb195d404b4b9a24ff50faaa777ff077330e06f336d369a61a855c0e09e3475477e1b34030dbab6d7c661a2452')
-
-build() {
- cd $_hkgname-$pkgver
-
- runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
- --prefix=/usr --docdir=/usr/share/doc/$pkgname \
- --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
- runhaskell Setup build
- 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
-# package: test-framework-th
-# 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"
-}
-
-# vim: ts=2 sw=2 et:
Copied: haskell-tz/repos/community-x86_64/PKGBUILD (from rev 548317, haskell-tz/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-01-04 19:39:26 UTC (rev 548318)
@@ -0,0 +1,50 @@
+# Maintainer: Jelle van der Waa <jelle at archlinux.org>
+
+_hkgname=tz
+pkgname=haskell-tz
+pkgver=0.1.3.3
+pkgrel=3
+pkgdesc='Efficient time zone handling'
+arch=(x86_64)
+url='https://hackage.haskell.org/package/tz'
+license=(BSD)
+depends=(ghc-libs haskell-vector haskell-data-default haskell-tzdata)
+checkdepends=(haskell-test-framework-th haskell-hunit haskell-quickcheck
+ haskell-test-framework-quickcheck2 haskell-test-framework-hunit)
+makedepends=(ghc)
+source=("https://hackage.haskell.org/packages/archive/$_hkgname/$pkgver/$_hkgname-$pkgver.tar.gz")
+sha512sums=('54dacfde056e5f860062e1dcf9fe9a384e8725bb195d404b4b9a24ff50faaa777ff077330e06f336d369a61a855c0e09e3475477e1b34030dbab6d7c661a2452')
+
+build() {
+ cd $_hkgname-$pkgver
+
+ runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
+ --prefix=/usr --docdir=/usr/share/doc/$pkgname \
+ --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \
+ --enable-tests \
+ --ghc-option=-optl-Wl\,-z\,relro\,-z\,now \
+ --ghc-option='-pie'
+
+ runhaskell Setup build
+ 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"
+}
+
+# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list