summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorTaras Shpot2018-08-08 22:56:57 +0300
committerTaras Shpot2018-08-08 22:56:57 +0300
commita596bb66d5e00d9507aaac76e715a94c21a6bad1 (patch)
treeb35b8facc14afcd5d4ba031e984cd1cc82046b3d
downloadaur-pd-jsusfx-git.tar.gz
pd-jsusfx-git: Initial PKGBUILD + .SRCINFO
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD41
2 files changed, 61 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..e10ed122687
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+pkgbase = pd-jsusfx-git
+ pkgdesc = JSFX for Pd
+ pkgver = 166.2150a49
+ pkgrel = 1
+ url = https://github.com/asb2m10/jsusfx
+ arch = i686
+ arch = x86_64
+ license = Apache
+ makedepends = git
+ makedepends = cmake
+ makedepends = php
+ makedepends = nasm
+ depends = pd
+ provides = pd-jsusfx
+ conflicts = pd-jsusfx
+ source = git+https://github.com/asb2m10/jsusfx.git
+ md5sums = SKIP
+
+pkgname = pd-jsusfx-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..e175b4b5db5
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,41 @@
+# Maintainer: Taras Shpot <mrshpot at gmail dot com>
+
+pkgname=pd-jsusfx-git
+pkgver=166.2150a49
+pkgrel=1
+pkgdesc="JSFX for Pd"
+arch=("i686" "x86_64")
+license=('Apache')
+url="https://github.com/asb2m10/jsusfx"
+depends=('pd')
+makedepends=('git' 'cmake' 'php' 'nasm')
+provides=('pd-jsusfx')
+conflicts=('pd-jsusfx')
+source=("git+https://github.com/asb2m10/jsusfx.git")
+md5sums=('SKIP')
+
+pkgver() {
+ cd $srcdir/jsusfx
+ echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
+}
+
+build() {
+ cd $srcdir/jsusfx
+ git submodule update --init --recursive
+ cd pd
+ cmake .
+ cmake --build .
+}
+
+package() {
+ cd $srcdir/jsusfx/pd
+ cmake --build . --target install
+ mkdir -p "$pkgdir/usr/lib/pd-externals/jsusfx"
+ mkdir -p "$pkgdir/usr/bin"
+ install -Dm644 dist/README.md "$pkgdir/usr/lib/pd-externals/jsusfx"
+ sed -i -e '1i\#!/usr/bin/env python' dist/jsfx2abstract.py
+ install -Dm755 dist/jsfx2abstract.py "$pkgdir/usr/bin/jsfx2abstract"
+ install -Dm755 dist/externals/*.pd_linux "$pkgdir/usr/lib/pd-externals/jsusfx"
+ install -Dm644 dist/externals/*.pd "$pkgdir/usr/lib/pd-externals/jsusfx"
+ install -Dm644 dist/externals/*.jsfx "$pkgdir/usr/lib/pd-externals/jsusfx"
+}