[arch-commits] Commit in haskell-hosc/repos (2 files)
Felix Yan
felixonmars at gemini.archlinux.org
Wed Jan 5 22:29:37 UTC 2022
Date: Wednesday, January 5, 2022 @ 22:29:37
Author: felixonmars
Revision: 1093751
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 1093750, haskell-hosc/trunk/PKGBUILD)
----------+
PKGBUILD | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 51 insertions(+)
Copied: haskell-hosc/repos/community-staging-x86_64/PKGBUILD (from rev 1093750, haskell-hosc/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2022-01-05 22:29:37 UTC (rev 1093751)
@@ -0,0 +1,51 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=hosc
+pkgname=haskell-hosc
+pkgver=0.19.1
+pkgrel=29
+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")
+source=("https://hackage.haskell.org/packages/archive/$_name/$pkgver/$_name-$pkgver.tar.gz")
+sha512sums=('5f6e23a14556a02bd8836054c6c3745109841380a3ac9fa4f2f1e8c0cc2c010e287bbd83546d2cf55ba0b8aad513f6e6c904fdcb73e38e5cecabf8b8dfca9295')
+
+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 --ghc-option=-fllvm \
+ --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