From 4172818592c087d71cc34296f6c6796b74edbfc3 Mon Sep 17 00:00:00 2001 From: Gary Wang Date: Sun, 24 Mar 2024 12:47:40 +0800 Subject: [PATCH] init commit --- .SRCINFO | 18 ++++++++++++++++++ PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 60 insertions(+) create mode 100644 .SRCINFO create mode 100644 PKGBUILD diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..8129f43 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = pineapple-midi-player + pkgdesc = Simple SoundFont MIDI Player + pkgver = 1.0.0 + pkgrel = 1 + url = https://github.com/BLumia/pineapple-midi-player/ + arch = x86_64 + arch = aarch64 + license = MIT + makedepends = git + makedepends = qt5-tools + makedepends = cmake + depends = qt5-svg + depends = portaudio + optdepends = soundfont-fluid: Decent SoundFont provided by FluidSynth + source = pineapple-midi-player-1.0.0.tar.gz::https://github.com/BLumia/pineapple-midi-player/archive/1.0.0.tar.gz + sha256sums = ed2dc4de675d646371e9c77b06f8ecd3d28c088980613d0114f318b2a6d29569 + +pkgname = pineapple-midi-player diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..800adff --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,42 @@ +# Maintainer: Gary Wang + +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 +}