archrelease: copy trunk to extra-x86_64
[arch-packages.git] / libinstpatch / trunk / PKGBUILD
blob53c97ba0c7809fedebc280e3186f0720ab87faf4
1 # Maintainer: David Runge <dvzrv@archlinux.org>
3 pkgname=libinstpatch
4 pkgver=1.1.6
5 pkgrel=1
6 pkgdesc="Instrument file software library"
7 arch=('x86_64')
8 url="https://github.com/swami/libinstpatch"
9 license=('LGPL2.1')
10 depends=('glibc')
11 makedepends=('cmake' 'glib2' 'libsndfile' 'python')
12 provides=('libinstpatch-1.0.so')
13 source=("$pkgname-$pkgver.tar.gz::https://github.com/swami/libinstpatch/archive/v${pkgver}.tar.gz")
14 sha512sums=('0e22165fc3c045bbc3ab2e1c090728232ed9142797ddbd067b682b9bcfee93850deb76c23b78f49a776e3d099be25fa029673ce8e4a909b2f48860dcdc55803c')
15 b2sums=('c5881e6559a7fbcb40e1c43c7dbbfc1df9ac9445e83c70044855c192c3b04945ae125c0e06253ba76d3922a1f8fc6965810700ed57018864b319076ee9528d55')
17 build() {
18   cd "$pkgname-$pkgver"
19   export CFLAGS+=" ${CPPFLAGS}"
20   export CXXFLAGS+=" ${CPPFLAGS}"
21   cmake -DCMAKE_INSTALL_PREFIX=/usr \
22         -DLIB_INSTALL_DIR=/usr/lib \
23         -DCMAKE_BUILD_TYPE='None' \
24         -Wno-dev \
25         -B build \
26         -S .
27   make VERBOSE=1 -C build
30 package() {
31   depends+=('libglib-2.0.so' 'libgobject-2.0.so' 'libsndfile.so')
32   cd "$pkgname-$pkgver"
33   make VERBOSE=1 DESTDIR="$pkgdir/" install -C build
34   install -vDm 644 {AUTHORS,ChangeLog,README.md,TODO.tasks} \
35     -t "${pkgdir}/usr/share/doc/${pkgname}"