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

Felix Yan felixonmars at archlinux.org
Mon Mar 16 03:54:30 UTC 2020


    Date: Monday, March 16, 2020 @ 03:54:30
  Author: felixonmars
Revision: 599078

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: tidalcycles/repos/community-staging-x86_64/PKGBUILD (from rev 599077, tidalcycles/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-03-16 03:54:30 UTC (rev 599078)
@@ -0,0 +1,53 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=Tidal
+pkgname=tidalcycles
+pkgver=1.4.8
+pkgrel=12
+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-vector' 'supercollider')
+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=('7be1c480c675d976d4f57d2e6a82fa88cdea64f5b1e16d25435e71554feccb5f0d4386922f70e7614e925d14c6306516390c24c7b37208d9bace0420f50a21f8')
+
+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