diff options
author | Carsten Teibes | 2016-01-07 19:39:43 +0100 |
---|---|---|
committer | Carsten Teibes | 2016-01-07 19:39:43 +0100 |
commit | cd6457ba8e2b76f2704b3888dd2835d77043bb5a (patch) | |
tree | 8cb9ef895911aca28af16111cbff01edd1a91d09 | |
download | aur-cd6457ba8e2b76f2704b3888dd2835d77043bb5a.tar.gz |
[add] libopenmpt and openmpt123 0.2.5787-beta16
-rw-r--r-- | .SRCINFO | 34 | ||||
-rw-r--r-- | PKGBUILD | 63 |
2 files changed, 97 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..9380b103ae1d --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,34 @@ +pkgbase = libopenmpt + pkgdesc = A cross-platform C++ and C library to decode tracked music files (modules) into a raw PCM audio stream. + pkgver = 0.2.5787.beta16 + pkgrel = 1 + url = http://lib.openmpt.org/ + arch = i686 + arch = x86_64 + license = BSD + makedepends = sdl2 + makedepends = portaudio + makedepends = libsndfile + makedepends = flac + makedepends = help2man + depends = zlib + depends = gcc-libs + source = http://lib.openmpt.org/files/libopenmpt/src/libopenmpt-0.2.5787-beta16.tar.gz + sha256sums = 6ee1921b48236d33e09f3a049029238ab82ccec3a30e75e6fb8ac65150831817 + +pkgname = libopenmpt + +pkgname = openmpt123 + pkgdesc = A cross-platform command-line or terminal based module file player. + depends = libopenmpt=0.2.5787.beta16 + depends = sdl2 + depends = portaudio + depends = libsndfile + depends = flac + +pkgname = openmpt123-minimal + pkgdesc = A cross-platform command-line or terminal based module file player (with minimal dependencies). + depends = libopenmpt=0.2.5787.beta16 + depends = sdl2 + conflicts = openmpt123 + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..ac5878379683 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,63 @@ +# Maintainer: carstene1ns <arch carsten-teibes de> - http://git.io/ctPKG + +pkgbase=libopenmpt +pkgname=(libopenmpt openmpt123 openmpt123-minimal) +_pkgver=0.2.5787-beta16 +pkgver=${_pkgver/-/.} +pkgrel=1 +pkgdesc='A cross-platform C++ and C library to decode tracked music files (modules) into a raw PCM audio stream.' +arch=('i686' 'x86_64') +url='http://lib.openmpt.org/' +license=('BSD') +depends=('zlib' 'gcc-libs') +makedepends=('sdl2' 'portaudio' 'libsndfile' 'flac' 'help2man') +source=("http://lib.openmpt.org/files/$pkgname/src/$pkgname-${_pkgver}.tar.gz") +sha256sums=('6ee1921b48236d33e09f3a049029238ab82ccec3a30e75e6fb8ac65150831817') + +build() { + cd $pkgbase-${_pkgver%-*} + + make CONFIG=gcc STATIC_LIB=0 NO_SDL=1 TEST=0 #VERBOSE=2 + + # additional, minimal openmpt123 version + cp bin/openmpt123.norpath bin/openmpt123_full + rm openmpt123/openmpt123.o bin/openmpt123{,.norpath} + make CONFIG=gcc STATIC_LIB=0 NO_SDL=1 NO_PORTAUDIO=1 NO_FLAC=1 NO_SNDFILE=1 TEST=0 #VERBOSE=2 + cp bin/openmpt123.norpath bin/openmpt123_minimal +} + +package_libopenmpt() { + cd $pkgbase-${_pkgver%-*} + + make PREFIX=/usr DESTDIR="$pkgdir" OPENMPT123=0 TEST=0 install + + # license + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} + +package_openmpt123() { + pkgdesc='A cross-platform command-line or terminal based module file player.' + depends=("libopenmpt=$pkgver" 'sdl2' 'portaudio' 'libsndfile' 'flac') + + cd $pkgbase-${_pkgver%-*}/bin + install -Dm755 openmpt123_full "$pkgdir"/usr/bin/openmpt123 + install -Dm644 openmpt123.1 "$pkgdir"/usr/share/man/man1/openmpt123.1 + + # link license + install -d "$pkgdir"/usr/share/licenses + ln -s $pkgbase "$pkgdir"/usr/share/licenses/$pkgname +} + +package_openmpt123-minimal() { + pkgdesc='A cross-platform command-line or terminal based module file player (with minimal dependencies).' + depends=("libopenmpt=$pkgver" 'sdl2') + conflicts=('openmpt123') + + cd $pkgbase-${_pkgver%-*}/bin + install -Dm755 openmpt123_minimal "$pkgdir"/usr/bin/openmpt123 + install -Dm644 openmpt123.1 "$pkgdir"/usr/share/man/man1/openmpt123.1 + + # link license + install -d "$pkgdir"/usr/share/licenses + ln -s $pkgbase "$pkgdir"/usr/share/licenses/$pkgname +} |