pineapple-midi-player/PKGBUILD
2024-03-24 12:47:40 +08:00

43 lines
1.1 KiB
Bash

# Maintainer: Gary Wang <git@blumia.net>
pkgname=pineapple-midi-player
pkgver=1.0.0
pkgrel=1
pkgdesc='Simple SoundFont MIDI Player'
arch=('x86_64' 'aarch64')
url='https://github.com/BLumia/pineapple-midi-player/'
license=('MIT')
depends=(
'qt5-svg'
'portaudio'
)
makedepends=(
'git'
'qt5-tools'
'cmake'
)
optdepends=(
'soundfont-fluid: Decent SoundFont provided by FluidSynth'
)
source=(
"${pkgname}-${pkgver}.tar.gz::https://github.com/BLumia/pineapple-midi-player/archive/${pkgver}.tar.gz"
)
sha256sums=(
'ed2dc4de675d646371e9c77b06f8ecd3d28c088980613d0114f318b2a6d29569'
)
build () {
cd ${srcdir}/${pkgname}-${pkgver}
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr .
cmake --build . -j`nproc`
}
package() {
make -C ${srcdir}/${pkgname}-${pkgver} DESTDIR="$pkgdir" install
cd ${srcdir}/${pkgname}-${pkgver}
#make INSTALL_ROOT="$pkgdir" install
#install -Dm755 ./ppic ${pkgdir}/usr/bin/ppic
mkdir -p ${pkgdir}/usr/share/licenses/${pkgname}
install ./LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
}