[arch-commits] Commit in haskell-persistent-sqlite/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Tue Jan 16 15:32:54 UTC 2018
Date: Tuesday, January 16, 2018 @ 15:32:53
Author: felixonmars
Revision: 283330
archrelease: copy trunk to community-staging-x86_64
Added:
haskell-persistent-sqlite/repos/community-staging-x86_64/
haskell-persistent-sqlite/repos/community-staging-x86_64/PKGBUILD
(from rev 283329, haskell-persistent-sqlite/trunk/PKGBUILD)
----------+
PKGBUILD | 47 +++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 47 insertions(+)
Copied: haskell-persistent-sqlite/repos/community-staging-x86_64/PKGBUILD (from rev 283329, haskell-persistent-sqlite/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2018-01-16 15:32:53 UTC (rev 283330)
@@ -0,0 +1,47 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=persistent-sqlite
+pkgname=haskell-persistent-sqlite
+pkgver=2.6.4
+pkgrel=21
+pkgdesc="Backend for the persistent library using sqlite3"
+url="http://www.yesodweb.com/book/persistent"
+license=("MIT")
+arch=('x86_64')
+depends=('ghc-libs' 'sqlite' 'haskell-aeson' 'haskell-conduit' 'haskell-monad-control'
+ 'haskell-microlens-th' 'haskell-monad-logger' 'haskell-old-locale' 'haskell-persistent'
+ 'haskell-resource-pool' 'haskell-resourcet' 'haskell-text' 'haskell-unordered-containers')
+makedepends=('ghc' 'haskell-hspec' 'haskell-persistent-template' 'haskell-temporary')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('f8ae4f0b501505b839306c283a8a4c854c62c8b325b25219b890339f4b0b4e6d669176e79b7e35fb9d4cf5fd4627117d464aa141840c7fade8ceac669ca86aa5')
+
+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 \
+ -f-build-sanity-exe -fsystemlib -fuse-pkgconfig
+ 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