summaryrefslogtreecommitdiff
path: root/pcr/minicomputer/PKGBUILD
diff options
context:
space:
mode:
authorGuest One <theguestone@gmail.com>2013-05-17 22:49:26 +0200
committerGuest One <theguestone@gmail.com>2013-05-17 22:49:26 +0200
commitd09b90a816aca9747a54cf8538ffa7348fb556de (patch)
tree8be53d08af684ce6a1d354aa331bcae678e9fc31 /pcr/minicomputer/PKGBUILD
parent6b75a68162bc8d3f65c14c85f0e4abfa7d0a110f (diff)
downloadabslibre-d09b90a816aca9747a54cf8538ffa7348fb556de.tar.gz
abslibre-d09b90a816aca9747a54cf8538ffa7348fb556de.tar.bz2
abslibre-d09b90a816aca9747a54cf8538ffa7348fb556de.zip
add new package minicomputer 1.41-1
Diffstat (limited to 'pcr/minicomputer/PKGBUILD')
-rw-r--r--pcr/minicomputer/PKGBUILD61
1 files changed, 61 insertions, 0 deletions
diff --git a/pcr/minicomputer/PKGBUILD b/pcr/minicomputer/PKGBUILD
new file mode 100644
index 000000000..4888c999f
--- /dev/null
+++ b/pcr/minicomputer/PKGBUILD
@@ -0,0 +1,61 @@
+# Maintainer: Guest One <theguestone at gmail dot com>
+
+pkgname=minicomputer
+pkgver=1.41
+pkgrel=1
+pkgdesc="A standalone Linux softwaresynthesizer for creating experimental electronic sounds."
+arch=('i686')
+url="http://minicomputer.sourceforge.net"
+license=('GPL3')
+depends=('fltk' 'jack' 'liblo')
+makedepends=('scons')
+install="$pkgname.install"
+source=("http://downloads.sourceforge.net/sourceforge/$pkgname/MinicomputerV$pkgver.tar.gz"
+ "$pkgname.desktop")
+md5sums=('d2524f5fee7475159292e29a5bcd73d2'
+ '3cc74321d55870b1684767255c74c2f8')
+
+build() {
+ cd "$srcdir"
+
+ # installpresets.sh fix
+ sed -i "s|factory|/usr/share/$pkgname/&|g" installpresets.sh
+
+ # 'R_OK' was not declared fix
+ sed -i '/#include <cstdlib>/a#include <unistd.h>' editor/Memory.h
+
+ # DSO linking fix
+ sed -i "35aenv.Append(LINKFLAGS = ['-lm'])" -i SConstruct
+
+ # build
+ LDFLAGS="LDFLAGS -lm" scons
+}
+package() {
+ cd "$srcdir"
+
+ # bin
+ install -d "$pkgdir/usr/bin"
+ install -Dm755 "$pkgname"{,CPU} "$pkgdir/usr/bin"
+
+ # icon
+ install -Dm644 $pkgname.xpm \
+ "$pkgdir/usr/share/pixmaps/$pkgname.xpm"
+
+ # desktop file
+ install -Dm644 $pkgname.desktop \
+ "$pkgdir/usr/share/applications/$pkgname.desktop"
+
+ # presets
+ install -d "$pkgdir/usr/share/$pkgname/factoryPresets"
+ install -Dm644 factoryPresets/* "$pkgdir/usr/share/$pkgname/factoryPresets"
+
+ # doc
+ install -Dm644 "$pkgname"Manual.pdf \
+ "$pkgdir/usr/share/doc/$pkgname/Manual.pdf"
+
+ # presets installer script
+ install -Dm755 installpresets.sh \
+ "$pkgdir/usr/share/$pkgname/installpresets.sh"
+}
+
+# vim:set ts=2 sw=2 et: