[arch-commits] Commit in haskell-hosc/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Wed Jun 23 01:43:09 UTC 2021
Date: Wednesday, June 23, 2021 @ 01:43:09
Author: felixonmars
Revision: 966969
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 966968, haskell-hosc/trunk/PKGBUILD)
----------+
PKGBUILD | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 50 insertions(+)
Copied: haskell-hosc/repos/community-staging-x86_64/PKGBUILD (from rev 966968, haskell-hosc/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2021-06-23 01:43:09 UTC (rev 966969)
@@ -0,0 +1,50 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=hosc
+pkgname=haskell-hosc
+pkgver=0.19
+pkgrel=2
+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=('2b1b10f857371cdba0266d31080f40a2f2d604828adca3bae2bdb990dbdf409e7ad755d43961a69a4f13fb77eaf2a378ec2bfcc3b80cea97216433f18851b89b')
+
+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 --show-details=direct
+}
+
+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