[arch-commits] Commit in haskell-simple-smt/repos (4 files)
Felix Yan
felixonmars at archlinux.org
Fri Aug 25 14:21:04 UTC 2017
Date: Friday, August 25, 2017 @ 14:21:04
Author: felixonmars
Revision: 253374
archrelease: copy trunk to community-testing-i686, community-testing-x86_64
Added:
haskell-simple-smt/repos/community-testing-i686/
haskell-simple-smt/repos/community-testing-i686/PKGBUILD
(from rev 253373, haskell-simple-smt/trunk/PKGBUILD)
haskell-simple-smt/repos/community-testing-x86_64/
haskell-simple-smt/repos/community-testing-x86_64/PKGBUILD
(from rev 253373, haskell-simple-smt/trunk/PKGBUILD)
-----------------------------------+
community-testing-i686/PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++
community-testing-x86_64/PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++
2 files changed, 84 insertions(+)
Copied: haskell-simple-smt/repos/community-testing-i686/PKGBUILD (from rev 253373, haskell-simple-smt/trunk/PKGBUILD)
===================================================================
--- community-testing-i686/PKGBUILD (rev 0)
+++ community-testing-i686/PKGBUILD 2017-08-25 14:21:04 UTC (rev 253374)
@@ -0,0 +1,42 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=simple-smt
+pkgname=haskell-simple-smt
+pkgver=0.7.0
+pkgrel=1
+pkgdesc="A simple way to interact with an SMT solver process"
+url="https://github.com/yav/simple-smt"
+license=("custom:BSD3")
+arch=('i686' 'x86_64')
+depends=('ghc-libs')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('73a943e8ead12272f0ec8fbd49337f71e25f3213b94d2bea2a61a6bb0fc5ac83b26e30a209b460d2e92d6e10364a5727e1abb93d762d64674a69150b9b0e6e5b')
+
+build() {
+ cd "${srcdir}/${_hkgname}-${pkgver}"
+
+ runhaskell Setup configure -O --enable-shared --enable-executable-dynamic \
+ --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"
+
+ # Remove static libs
+ find "$pkgdir"/usr/lib -name "*.a" -delete
+}
Copied: haskell-simple-smt/repos/community-testing-x86_64/PKGBUILD (from rev 253373, haskell-simple-smt/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD (rev 0)
+++ community-testing-x86_64/PKGBUILD 2017-08-25 14:21:04 UTC (rev 253374)
@@ -0,0 +1,42 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=simple-smt
+pkgname=haskell-simple-smt
+pkgver=0.7.0
+pkgrel=1
+pkgdesc="A simple way to interact with an SMT solver process"
+url="https://github.com/yav/simple-smt"
+license=("custom:BSD3")
+arch=('i686' 'x86_64')
+depends=('ghc-libs')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('73a943e8ead12272f0ec8fbd49337f71e25f3213b94d2bea2a61a6bb0fc5ac83b26e30a209b460d2e92d6e10364a5727e1abb93d762d64674a69150b9b0e6e5b')
+
+build() {
+ cd "${srcdir}/${_hkgname}-${pkgver}"
+
+ runhaskell Setup configure -O --enable-shared --enable-executable-dynamic \
+ --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"
+
+ # Remove static libs
+ find "$pkgdir"/usr/lib -name "*.a" -delete
+}
More information about the arch-commits
mailing list