Skip to content

Instantly share code, notes, and snippets.

@cocreature
Last active December 30, 2015 22:49
Show Gist options
  • Save cocreature/7896972 to your computer and use it in GitHub Desktop.
Save cocreature/7896972 to your computer and use it in GitHub Desktop.
_name=luppp
pkgname=$_name-git
pkgver=release.1.0.r7.g672429d
pkgrel=1
pkgdesc="Luppp: the Luppp Unprepared Personal Performing Program, is a live looping tool."
arch=(i686 x86_64)
url="https://github.com/harryhaaren/openAV-luppp"
license=('GPLv3+')
depends=('ntk-git')
makedepends=('git' 'cmake')
optdepends=()
provides=("$_name")
conflicts=("$_name")
source=("$pkgname"::"git://github.com/harryhaaren/openAV-Luppp.git")
md5sums=('SKIP')
pkgver() {
cd "$srcdir/$pkgname"
git describe --long --tags | sed -E 's/([^-]*-g)/r\1/;s/-/./g'
}
build() {
cd "$srcdir/$pkgname"
./version.sh
cmake . -DCMAKE_INSTALL_PREFIX=/usr -DRELEASE_BUILD=1
make
}
package() {
cd "$srcdir/$pkgname"
install -Dm755 src/luppp $pkgdir/usr/bin/luppp
install -Dm644 src/resources/luppp.prfs $pkgdir/etc/luppp.prfs
install -Ddm644 src/resources/controllers $pkgdir/usr/lib/luppp/controllers/
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment