[arch-commits] Commit in haskell-tidal/repos (2 files)
David Runge
dvzrv at archlinux.org
Sat Apr 18 12:00:20 UTC 2020
Date: Saturday, April 18, 2020 @ 12:00:14
Author: dvzrv
Revision: 616055
archrelease: copy trunk to community-x86_64
Added:
haskell-tidal/repos/community-x86_64/
haskell-tidal/repos/community-x86_64/PKGBUILD
(from rev 616054, haskell-tidal/trunk/PKGBUILD)
----------+
PKGBUILD | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 54 insertions(+)
Copied: haskell-tidal/repos/community-x86_64/PKGBUILD (from rev 616054, haskell-tidal/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2020-04-18 12:00:14 UTC (rev 616055)
@@ -0,0 +1,54 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=Tidal
+pkgname=haskell-tidal
+pkgver=1.4.9
+pkgrel=1
+pkgdesc="A domain specific language for live coding pattern."
+arch=('x86_64')
+url="https://tidalcycles.org/"
+license=('GPL3')
+groups=('pro-audio')
+depends=('ghc' 'ghc-libs' 'glibc' 'haskell-bifunctors' 'haskell-clock'
+'haskell-colour' 'haskell-hosc' 'haskell-mwc-random' 'haskell-network'
+'haskell-primitive' 'haskell-random' 'haskell-vector' 'supercollider')
+checkdepends=('haskell-microspec')
+optdepends=('sc3-plugins: Examples using special UGens')
+conflicts=('tidalcycles')
+replaces=('tidalcyles')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/tidalcycles/${_name}/archive/${pkgver}.tar.gz")
+sha512sums=('de66872784b1e6ee4f0319bd6e72083415f2485a06c44b15546e5e8bdfc9aabc19c2a6612fe4af66fa12cd166b4b6d91a05dee60127394c279af07207eb62f7b')
+
+prepare() {
+ mv -v "${_name}-$pkgver" "$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
+ 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 "$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