[arch-commits] Commit in haskell-th-abstraction/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Wed May 16 16:53:39 UTC 2018
Date: Wednesday, May 16, 2018 @ 16:53:39
Author: felixonmars
Revision: 322980
archrelease: copy trunk to community-staging-x86_64
Added:
haskell-th-abstraction/repos/community-staging-x86_64/
haskell-th-abstraction/repos/community-staging-x86_64/PKGBUILD
(from rev 322979, haskell-th-abstraction/trunk/PKGBUILD)
----------+
PKGBUILD | 44 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 44 insertions(+)
Copied: haskell-th-abstraction/repos/community-staging-x86_64/PKGBUILD (from rev 322979, haskell-th-abstraction/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2018-05-16 16:53:39 UTC (rev 322980)
@@ -0,0 +1,44 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=th-abstraction
+pkgname=haskell-th-abstraction
+pkgver=0.2.6.0
+pkgrel=4
+pkgdesc="Nicer interface for reified information about data types"
+url="https://github.com/glguy/th-abstraction/"
+license=("custom:ISC")
+arch=('x86_64')
+depends=('ghc-libs')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('d1c09914e6760e43498ea41d81ca22e2fc3fb7cf396bb718f729a19bd2698572c242357c1b40a8df9101f2afd86b37fa5c07f82beb46f87b21a9667c48db5b7b')
+
+prepare() {
+ cd $_hkgname-$pkgver
+ sed -i 's/<.*2.13/<3/' $_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}" \
+ --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
+}
+
+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