makedeb
GZDoom is music system as a standalone library
Viewing /PKGBUILD
.
Click here to go back to the Git tree for zmusic.
# Maintainer: Kay <lambdadeltacommunism@gmail.com>
pkgname=zmusic
pkgver=1.1.14
pkgrel=3
pkgdesc="GZDoom is music system as a standalone library"
arch=('amd64' 'arm64')
url='https://github.com/ZDoom/ZMusic'
license=('BSD' 'GPL3' 'LGPL2.1' 'LGPL3' 'custom:dumb')
depends=('libasound2-dev' 'libfluidsynth-dev>=2.1' 'libsndfile1-dev' 'libmpg123-dev' 'zlib1g-dev')
makedepends=('cmake' 'git')
_srcname=ZMusic-${pkgver}
source=("${_srcname}.tar.gz::https://github.com/ZDoom/ZMusic/archive/${pkgver}.tar.gz")
sha256sums=('f04410fe4ea08136f37703e7715c27df4c8532ace1e721cf40c6f303a93acc54')
build() {
cd $_srcname
mkdir -p build
cmake -B build \
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_INSTALL_PREFIX=/usr \
-D DYN_MPG123=OFF \
-D DYN_SNDFILE=OFF
make -C build
}
package() {
cd $_srcname
make -C build install DESTDIR="$pkgdir"
install licenses/{bsd,dumb,legal,zmusic}.txt -t "$pkgdir"/usr/share/licenses/$pkgname -D -m 644
}