[arch-commits] Commit in adlplug/repos (2 files)
David Runge
dvzrv at gemini.archlinux.org
Tue Aug 9 11:21:30 UTC 2022
Date: Tuesday, August 9, 2022 @ 11:21:30
Author: dvzrv
Revision: 1263519
archrelease: copy trunk to community-staging-x86_64
Added:
adlplug/repos/community-staging-x86_64/
adlplug/repos/community-staging-x86_64/PKGBUILD
(from rev 1263518, adlplug/trunk/PKGBUILD)
----------+
PKGBUILD | 83 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 83 insertions(+)
Copied: adlplug/repos/community-staging-x86_64/PKGBUILD (from rev 1263518, adlplug/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2022-08-09 11:21:30 UTC (rev 1263519)
@@ -0,0 +1,83 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=ADLplug
+pkgbase=adlplug
+pkgname=(adlplug opnplug)
+pkgver=1.0.2
+pkgrel=5
+pkgdesc="FM synthesizer plugins, based on OPL3 and OPN2 sound chip emulations"
+arch=(x86_64)
+url="https://github.com/jpcima/ADLplug"
+license=(Boost GPL2 GPL3 LGPL2.1)
+groups=(pro-audio lv2-plugins vst-plugins)
+# TODO: devendor simpleini, if feasible
+depends=(gcc-libs glibc hicolor-icon-theme libx11 libxext)
+makedepends=(alsa-lib cmake fmt freetype2 jack liblo libxrandr
+libxinerama libxcursor)
+source=(
+ https://github.com/jpcima/$pkgbase/releases/download/v$pkgver/$_name-$pkgver.tar.xz
+ $pkgbase-1.0.1-gcc9.patch::https://github.com/WeAreROLI/JUCE/commit/4e0adb2af8b424c43d22bd431011c9a6c57d36b6.patch
+)
+sha512sums=('53192a622de528d4dd06dbd8411b5d1ba8346e9f181fd160fa14c2cf402a819ff354212ced59e13b11738ef6bf696cb0927a67c2e97ef94ade70acb29807f5cc'
+ '263fe21e7362f4b8c4009d33e8a086ddf57ddd44267343b924f1304a58580a38e6bd2d36c9548ec706be733476d27e5c89f8095f401b9b841ade63d9cb812a77')
+b2sums=('ea049a6373fdd05f6401766f077819de704748055569a67aabb27e6064d922a28f635d8322914a5c418875b09a0152efa3ac4a3ae32400b12e31ae10166ceffb'
+ '356fe202072436cab89fdde3a06a5140d286d7636b663f32432f36b98170bef1aa7a931aeb6bedb2ff4d6b8f4b4c730f1760211b2fa9b709fe30bfedbe8df62f')
+
+prepare() {
+ # fix build with gcc9: https://github.com/jpcima/ADLplug/issues/54
+ patch -Np1 -d$_name-$pkgver/thirdparty/JUCE -i ../../../$pkgbase-1.0.1-gcc9.patch
+}
+
+build() {
+ # build opl3
+ cmake -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=None \
+ -DCMAKE_INSTALL_LIBDIR=/usr/lib \
+ -DADLplug_CHIP=OPL3 \
+ -DADLplug_USE_SYSTEM_FMT=ON \
+ -W no-dev \
+ -B build-${pkgname[0]} \
+ -S $_name-$pkgver
+ cmake --build build-${pkgname[0]}
+
+ # build opn2
+ cmake -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=None \
+ -DCMAKE_INSTALL_LIBDIR=/usr/lib \
+ -DADLplug_CHIP=OPN2 \
+ -DADLplug_USE_SYSTEM_FMT=ON \
+ -W no-dev \
+ -B build-${pkgname[1]} \
+ -S $_name-$pkgver
+ cmake --build build-${pkgname[1]}
+}
+
+package_adlplug() {
+ pkgdesc="FM synthesizer for ADLMIDI with OPL3 chip emulation"
+ depends+=(libasound.so libfmt.so libfreetype.so)
+ optdepends=(
+ 'jack: for the standalone application'
+ 'liblo: for new-session-manager support'
+ 'lv2-host: for the LV2 plugin'
+ 'new-session-manager: for session management'
+ 'vst-host: for the VST plugin'
+ )
+
+ DESTDIR="$pkgdir" cmake --install build-$pkgname
+ install -vDm 644 $_name-$pkgver/README.md -t "$pkgdir/usr/share/doc/$pkgname/"
+}
+
+package_opnplug() {
+ pkgdesc="FM synthesizer for OPNMIDI with OPN2 chip emulation"
+ depends+=(libasound.so libfmt.so libfreetype.so)
+ optdepends=(
+ 'jack: for the standalone application'
+ 'liblo: for new-session-manager support'
+ 'lv2-host: for the LV2 plugin'
+ 'new-session-manager: for session management'
+ 'vst-host: for the VST plugin'
+ )
+
+ DESTDIR="$pkgdir" cmake --install build-$pkgname
+ install -vDm 644 $_name-$pkgver/README.md -t "$pkgdir/usr/share/doc/$pkgname/"
+}
More information about the arch-commits
mailing list