Files
extra/libinstpatch/PKGBUILD
2025-06-22 20:39:04 -05:00

36 lines
1.1 KiB
Bash

# Maintainer: Jesus E. <heckyel@riseup.net>
pkgname=libinstpatch
pkgver=1.1.6
pkgrel=2
pkgdesc="Instrument file software library"
arch=('i686' 'x86_64')
url="https://github.com/swami/libinstpatch"
license=('LGPL-2.1')
depends=('glibc')
makedepends=('cmake' 'glib2' 'libsndfile' 'python')
source=("$pkgname-$pkgver.tar.gz::https://github.com/swami/libinstpatch/archive/v${pkgver}.tar.gz")
sha512sums=('0e22165fc3c045bbc3ab2e1c090728232ed9142797ddbd067b682b9bcfee93850deb76c23b78f49a776e3d099be25fa029673ce8e4a909b2f48860dcdc55803c')
build() {
cd "$pkgname-$pkgver"
export CFLAGS+=" ${CPPFLAGS}"
export CXXFLAGS+=" ${CPPFLAGS}"
cmake -DCMAKE_INSTALL_PREFIX=/usr \
-DLIB_INSTALL_DIR=/usr/lib \
-DCMAKE_BUILD_TYPE='None' \
-Wno-dev \
-B build \
-S .
make VERBOSE=1 -C build
}
package() {
cd "$pkgname-$pkgver"
make VERBOSE=1 DESTDIR="$pkgdir/" install -C build
install -vDm 644 {AUTHORS,ChangeLog,README.md,TODO.tasks} \
-t "${pkgdir}/usr/share/doc/${pkgname}"
install -vDm 644 COPYING \
-t "${pkgdir}/usr/share/licenses/${pkgname}"
}