[arch-commits] Commit in haskell-language-c/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Sun Jun 23 02:58:25 UTC 2019
Date: Sunday, June 23, 2019 @ 02:58:22
Author: felixonmars
Revision: 482844
archrelease: copy trunk to community-staging-x86_64
Added:
haskell-language-c/repos/community-staging-x86_64/
haskell-language-c/repos/community-staging-x86_64/PKGBUILD
(from rev 482843, haskell-language-c/trunk/PKGBUILD)
----------+
PKGBUILD | 46 ++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 46 insertions(+)
Copied: haskell-language-c/repos/community-staging-x86_64/PKGBUILD (from rev 482843, haskell-language-c/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2019-06-23 02:58:22 UTC (rev 482844)
@@ -0,0 +1,46 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=language-c
+pkgname=haskell-language-c
+pkgver=0.8.2
+pkgrel=9
+pkgdesc="Analysis and generation of C code"
+url="https://visq.github.io/language-c/"
+license=("BSD")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-syb')
+makedepends=('happy' 'alex' 'ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('39554d17c967422b2a927eb3f70e68aba8ba1e6ad2464613b75f0e353282dbe0c61c29030cccc514adeb2a85c12c33d4f74f4e74973f7a3a7fbac777c9743e24')
+
+build() {
+ cd $_hkgname-$pkgver
+
+ rm -fr dist
+
+ 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 \
+ -fseparatesyb -fusebytestrings -f-allwarnings -fiecfpextension
+ 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 $_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