[arch-commits] Commit in haskell-generic-deriving/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Fri Oct 19 03:12:51 UTC 2018
Date: Friday, October 19, 2018 @ 03:12:51
Author: felixonmars
Revision: 396974
archrelease: copy trunk to community-staging-x86_64
Added:
haskell-generic-deriving/repos/community-staging-x86_64/
haskell-generic-deriving/repos/community-staging-x86_64/PKGBUILD
(from rev 396973, haskell-generic-deriving/trunk/PKGBUILD)
----------+
PKGBUILD | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 49 insertions(+)
Copied: haskell-generic-deriving/repos/community-staging-x86_64/PKGBUILD (from rev 396973, haskell-generic-deriving/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2018-10-19 03:12:51 UTC (rev 396974)
@@ -0,0 +1,49 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=generic-deriving
+pkgname=haskell-generic-deriving
+pkgver=1.12.2
+pkgrel=14
+pkgdesc="Generic programming library for generalised deriving."
+url="https://github.com/dreixel/generic-deriving"
+license=("custom:BSD3")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-th-abstraction')
+makedepends=('ghc' 'haskell-hspec')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('6abbc9508ab4c85536cba1cdc8d086952f0268527cd2db058492bc76d94bda58d99c47132c6deb56a24000b9fad0b043582dbc0af740c7731c1a4ebf510be7af')
+
+prepare() {
+ cd $_hkgname-$pkgver
+ sed -e 's/<.*2.14/<3/' -e 's/< *0.6/<1/' -i $_hkgname.cabal
+}
+
+build() {
+ cd "${srcdir}/${_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 \
+ -fbase-4-9
+ 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 "${srcdir}/${_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