[arch-commits] Commit in tidalcycles/repos (2 files)

David Runge dvzrv at archlinux.org
Sat Aug 24 17:20:01 UTC 2019


    Date: Saturday, August 24, 2019 @ 17:20:01
  Author: dvzrv
Revision: 501514

archrelease: copy trunk to community-x86_64

Added:
  tidalcycles/repos/community-x86_64/
  tidalcycles/repos/community-x86_64/PKGBUILD
    (from rev 501513, tidalcycles/trunk/PKGBUILD)

----------+
 PKGBUILD |   54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 54 insertions(+)

Copied: tidalcycles/repos/community-x86_64/PKGBUILD (from rev 501513, tidalcycles/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2019-08-24 17:20:01 UTC (rev 501514)
@@ -0,0 +1,54 @@
+# Maintainer: David Runge <dave at sleepmap.de>
+
+_name=Tidal
+pkgname=tidalcycles
+pkgver=1.4.0
+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-libs' 'haskell-bifunctors' 'haskell-clock' 'haskell-colour'
+'haskell-hosc' 'haskell-mwc-random' 'haskell-network' 'haskell-primitive'
+'haskell-vector' 'supercollider')
+makedepends=('ghc')
+checkdepends=('haskell-microspec')
+optdepends=('sc3-plugins: Examples using special UGens')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/tidalcycles/Tidal/archive/${pkgver}.tar.gz")
+sha512sums=('56b9b2768b72815ab31e8e2a31866078bad6cf07722f25ef43c004c529f9c64fd6694246acaac0d6ad7e8d03a1579e95b97b80d1e00f94e177ca66e0c6b4b2a6')
+
+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
+  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