Skip to content

Instantly share code, notes, and snippets.

@GraithTiger
Created March 22, 2023 19:11
Show Gist options
  • Save GraithTiger/8ffa2c72d4c5678c447931e3c5d28bdc to your computer and use it in GitHub Desktop.
Save GraithTiger/8ffa2c72d4c5678c447931e3c5d28bdc to your computer and use it in GitHub Desktop.
PKGBUILD-clap-host
# 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