[arch-commits] Commit in haskell-tzdata/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Mon Aug 17 21:04:11 UTC 2020
Date: Monday, August 17, 2020 @ 21:04:10
Author: felixonmars
Revision: 683286
archrelease: copy trunk to community-staging-x86_64
Added:
haskell-tzdata/repos/community-staging-x86_64/
haskell-tzdata/repos/community-staging-x86_64/PKGBUILD
(from rev 683285, haskell-tzdata/trunk/PKGBUILD)
----------+
PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
Copied: haskell-tzdata/repos/community-staging-x86_64/PKGBUILD (from rev 683285, haskell-tzdata/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2020-08-17 21:04:10 UTC (rev 683286)
@@ -0,0 +1,42 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=tzdata
+pkgname=haskell-tzdata
+pkgver=0.1.20190911.0
+pkgrel=40
+pkgdesc="Haskell package that distributes the standard time zone database"
+url="https://github.com/nilcons/haskell-tzdata"
+license=('Apache')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-vector')
+makedepends=('ghc' 'haskell-test-framework' 'haskell-test-framework-hunit'
+ 'haskell-test-framework-th')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
+sha512sums=('f4c4fec7a8fb7c4706ee73ad19f3b96b7299b524dffcdf012c1236c866755c1e6a08434e22f0a58aae89d3b9c79bcd72a4c58fdfa7cad25db3786fe30db252fa')
+
+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"
+ rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}
More information about the arch-commits
mailing list