Created
March 22, 2023 19:11
-
-
Save GraithTiger/8ffa2c72d4c5678c447931e3c5d28bdc to your computer and use it in GitHub Desktop.
PKGBUILD-clap-host
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Alexandre BIQUE <bique.alexandre@gmail.com> | |
pkgname=clap-host | |
pkgver=1.0.3 | |
pkgrel=1 | |
pkgdesc="CLAP example host" | |
arch=(x86_64) | |
url="https://github.com/free-audio/clap-host" | |
license=('MIT') | |
groups=() | |
depends=(qt6-base rtmidi rtaudio hicolor-icon-theme) | |
makedepends=(cmake ninja catch2 git) | |
optdepends=() | |
provides=() | |
conflicts=() | |
replaces=() | |
backup=() | |
options=() | |
install= | |
changelog= | |
source=(git+https://github.com/free-audio/clap-host#tag=$pkgver | |
git+https://github.com/free-audio/clap | |
git+https://github.com/free-audio/clap-helpers) | |
noextract=() | |
sha256sums=(SKIP | |
SKIP | |
SKIP) | |
prepare() { | |
cd "$pkgname" | |
git submodule init | |
git config submodule.clap.url "$srcdir/clap" | |
git config submodule.clap-helpers.url "$srcdir/clap-helpers" | |
git config --remove-section submodule.vcpkg | |
git -c protocol.file.allow=always submodule update | |
} | |
build() { | |
cd "$pkgname" | |
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DUsePkgConfig=TRUE \ | |
-GNinja --preset ninja-system | |
cmake --build --preset ninja-system | |
} | |
package() { | |
cd "$pkgname/builds/ninja-system" | |
DESTDIR="$pkgdir/" ninja install | |
install -Dm644 "$srcdir/$pkgname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment