[arch-commits] Commit in haskell-hosc/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Wed Dec 23 05:12:41 UTC 2020
Date: Wednesday, December 23, 2020 @ 05:12:41
Author: felixonmars
Revision: 783675
archrelease: copy trunk to community-staging-x86_64
Added:
haskell-hosc/repos/community-staging-x86_64/
haskell-hosc/repos/community-staging-x86_64/PKGBUILD
(from rev 783674, haskell-hosc/trunk/PKGBUILD)
----------+
PKGBUILD | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 50 insertions(+)
Copied: haskell-hosc/repos/community-staging-x86_64/PKGBUILD (from rev 783674, haskell-hosc/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2020-12-23 05:12:41 UTC (rev 783675)
@@ -0,0 +1,50 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=hosc
+pkgname=haskell-hosc
+pkgver=0.18
+pkgrel=36
+pkgdesc="Haskell Open Sound Control"
+arch=('x86_64')
+url="https://github.com/rd--/hosc"
+license=('GPL')
+depends=('ghc-libs' 'haskell-blaze-builder' 'haskell-data-binary-ieee754' 'haskell-network')
+makedepends=('ghc')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/rd--/hosc/archive/${pkgver}.tar.gz")
+sha512sums=('ed994511500d4ff90ee7e26320a82fda5fe3b7e320b36b4c200c401a1c4175d558c7f45775e6bb867a1186984ab91752bf91e6cb9472318416cc5eedfab21573')
+
+prepare() {
+ mv -v "${_name}-$pkgver" "$pkgname-$pkgver"
+ cd "$pkgname-$pkgver"
+}
+
+build() {
+ cd "$pkgname-$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 \
+ --datasubdir="$pkgname"
+ runhaskell Setup build $MAKEFLAGS
+ 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 "$pkgname-$pkgver"
+ runhaskell Setup test
+}
+
+package() {
+ cd "$pkgname-$pkgver"
+ runhaskell Setup copy --destdir="${pkgdir}"
+ install -vDm 744 register.sh "$pkgdir/usr/share/haskell/register/$pkgname.sh"
+ install -vDm 744 unregister.sh "$pkgdir/usr/share/haskell/unregister/$pkgname.sh"
+}
More information about the arch-commits
mailing list