From d09b90a816aca9747a54cf8538ffa7348fb556de Mon Sep 17 00:00:00 2001 From: Guest One Date: Fri, 17 May 2013 22:49:26 +0200 Subject: add new package minicomputer 1.41-1 --- pcr/minicomputer/PKGBUILD | 61 +++++++++++++++++++++++++++++++++++ pcr/minicomputer/minicomputer.desktop | 9 ++++++ pcr/minicomputer/minicomputer.install | 21 ++++++++++++ 3 files changed, 91 insertions(+) create mode 100644 pcr/minicomputer/PKGBUILD create mode 100644 pcr/minicomputer/minicomputer.desktop create mode 100644 pcr/minicomputer/minicomputer.install (limited to 'pcr/minicomputer') 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 + +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 /a#include ' 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: diff --git a/pcr/minicomputer/minicomputer.desktop b/pcr/minicomputer/minicomputer.desktop new file mode 100644 index 000000000..578f04ddb --- /dev/null +++ b/pcr/minicomputer/minicomputer.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Encoding=UTF-8 +Name=Minicomputer +Comment=An industrial grade software synthesizer +Exec=minicomputer +Icon=minicomputer +Terminal=false +Type=Application +Categories=Application;AudioVideo; diff --git a/pcr/minicomputer/minicomputer.install b/pcr/minicomputer/minicomputer.install new file mode 100644 index 000000000..e441a6f02 --- /dev/null +++ b/pcr/minicomputer/minicomputer.install @@ -0,0 +1,21 @@ +post_install() { + post_remove + + cat << EOF + +>>> For installing some sample presets in ~/.miniComputer, use +>>> /usr/share/minicomputer/installpresets.sh +>>> +>>> Use "minicomputer" to start the engine and the GUI +>>> Documentation can be found in /usr/share/doc/minicomputer/Manual.pdf + +EOF +} + +post_upgrade() { + post_remove +} + +post_remove() { + update-desktop-database -q +} -- cgit v1.2.2