[arch-commits] Commit in haskell-uuid/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Sun May 27 18:30:41 UTC 2018
Date: Sunday, May 27, 2018 @ 18:30:40
Author: felixonmars
Revision: 332001
archrelease: copy trunk to community-staging-x86_64
Added:
haskell-uuid/repos/community-staging-x86_64/
haskell-uuid/repos/community-staging-x86_64/PKGBUILD
(from rev 332000, haskell-uuid/trunk/PKGBUILD)
----------+
PKGBUILD | 44 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 44 insertions(+)
Copied: haskell-uuid/repos/community-staging-x86_64/PKGBUILD (from rev 332000, haskell-uuid/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2018-05-27 18:30:40 UTC (rev 332001)
@@ -0,0 +1,44 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=uuid
+pkgname=haskell-uuid
+pkgver=1.3.13
+pkgrel=17
+pkgdesc="For creating, comparing, parsing and printing Universally Unique Identifiers"
+url="https://github.com/aslatter/uuid"
+license=("custom:BSD3")
+arch=('x86_64')
+depends=('ghc-libs' "haskell-cryptohash-md5" "haskell-cryptohash-sha1" "haskell-entropy"
+ "haskell-network-info" "haskell-random" "haskell-uuid-types")
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('e888e6350a32c6496b0b57384797925c78ab1c4dc674d296972981fa81338b4705d21a96960a63771aa5b9a785efd507ecaad195767dba7847fcab5ca7f3f923')
+
+prepare() {
+ sed -i -e 's/time >= 1.1 && < 1.8,/time >= 1.1,/' -e 's/<.*0.4/<1/' $_hkgname-$pkgver/$_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