summaryrefslogtreecommitdiff
path: root/pcr/libninjam
diff options
context:
space:
mode:
authorbill-auger <mr.j.spam.me@gmail.com>2020-04-23 01:04:48 -0400
committerbill-auger <mr.j.spam.me@gmail.com>2020-04-24 04:32:21 -0400
commitc0a354284f62857cfe2813f55d260bdf34a473f6 (patch)
tree5404315edc217d1d672624c2efab9f22fa0a9400 /pcr/libninjam
parent4d855885743d8dc0a662f3ddd484ad25938b7c44 (diff)
downloadabslibre-c0a354284f62857cfe2813f55d260bdf34a473f6.tar.gz
abslibre-c0a354284f62857cfe2813f55d260bdf34a473f6.tar.bz2
abslibre-c0a354284f62857cfe2813f55d260bdf34a473f6.zip
[libninjam]: add package
Diffstat (limited to 'pcr/libninjam')
-rw-r--r--pcr/libninjam/PKGBUILD53
1 files changed, 53 insertions, 0 deletions
diff --git a/pcr/libninjam/PKGBUILD b/pcr/libninjam/PKGBUILD
new file mode 100644
index 000000000..66071d889
--- /dev/null
+++ b/pcr/libninjam/PKGBUILD
@@ -0,0 +1,53 @@
+# Maintainer: bill-auger <bill-auger@programmer.net>
+
+
+pkgbase=libninjam
+pkgname=(libninjam ninjam-client ninjam-server)
+pkgver=0.7.0
+pkgrel=1
+pkgdesc="common base library for compatible NINJAM servers and clients"
+arch=(armv7h i686 x86_64)
+url=https://github.com/libninjam/libninjam
+license=('GPL2')
+
+depends=('jack' 'libvorbis')
+source=(https://github.com/libninjam/${pkgname}/archive/v${pkgver}.tar.gz)
+sha256sums=('6b869f32669a06845546cbb7df0f20758abb99e1506049996c66c00198a2f662')
+
+
+build()
+{
+ cd ${pkgbase}-${pkgver}
+
+ make
+}
+
+package_libninjam()
+{
+ cd ${pkgbase}-${pkgver}
+
+ mkdir -p "$pkgdir"/usr/include/libninjam/ninjam
+ install -m 644 src/ninjam/*.h "$pkgdir"/usr/include/libninjam/ninjam/
+ mkdir -p "$pkgdir"/usr/include/libninjam/WDL/jnetlib
+ install -m 644 src/WDL/*.h "$pkgdir"/usr/include/libninjam/WDL/
+ install -m 644 src/WDL/jnetlib/*.h "$pkgdir"/usr/include/libninjam/WDL/jnetlib/
+ mkdir -p "$pkgdir"/usr/lib/pkgconfig
+ install -m 644 build/lib/*.so "$pkgdir"/usr/lib/
+ install -m 644 build/lib/*.a "$pkgdir"/usr/lib/
+ install -m 644 build/pc/ninjam.pc "$pkgdir"/usr/lib/pkgconfig/
+ install -m 644 build/pc/ninjam-client.pc "$pkgdir"/usr/lib/pkgconfig/
+}
+
+package_ninjam-client()
+{
+ cd ${pkgbase}-${pkgver}
+
+ install -Dm755 build/ninjamsrv "$pkgdir"/usr/bin/cninjam
+}
+
+package_ninjam-server()
+{
+ cd ${pkgbase}-${pkgver}
+
+ install -Dm755 build/ninjamsrv "$pkgdir"/usr/bin/ninjamsrv
+}