From c933a50b1d0f18fa32b29725d72fdf33cef57ffd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20H=C3=BClsmann?= Date: Sat, 16 Dec 2023 19:38:02 +0100 Subject: [PATCH] Package cdp --- packages/cdp/PKGBUILD | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 packages/cdp/PKGBUILD diff --git a/packages/cdp/PKGBUILD b/packages/cdp/PKGBUILD new file mode 100644 index 00000000..a704b57d --- /dev/null +++ b/packages/cdp/PKGBUILD @@ -0,0 +1,39 @@ +# Maintainer: OSAMC +# Contributor: Florian Hülsmann + +_name=CDP8 +pkgname=cdp +pkgver=8.0 +pkgrel=1 +pkgdesc='Composers Desktop Project suite of sound manipulation tools' +arch=(aarch64 x86_64) +url='https://www.composersdesktop.com/' +license=(LGPL-2.1-only) +groups=(pro-audio) +depends=() +makedepends=(make) +source=("$pkgname-$pkgver.tar.gz::https://github.com/ComposersDesktop/$_name/archive/refs/tags/CDP$pkgver.tar.gz") +sha256sums=('2a0e33c3d8bfdd12abf013ea5fcfa33e18c87f66823aa5676667810d726ffdff') + +prepare() { + cd $_name-CDP$pkgver/libaaio + bsdtar -xvjf libaaio-0.3.1.tar.bz2 +} + +build() { + cd $_name-CDP$pkgver/libaaio/libaaio-0.3.1 + ./configure + make + + cd "$srcdir" + cmake -B build -S $_name-CDP$pkgver \ + -DCMAKE_BUILD_TYPE=None \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_LIBRARY_PATH="$srcdir/$_name-CDP$pkgver/libaaio/libaaio-0.3.1/.libs;/usr/lib" \ + -Wno-dev + cmake --build build +} + +package() { + DESTDIR="$pkgdir" cmake --install build +}