blob: b1e0c19dbeb9ff39421e3dcac98b612a50e52c9e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# Maintainer: David Runge <dvzrv@archlinux.org>
_name=libinstpatch
pkgname=lib32-libinstpatch
pkgver=1.1.7
pkgrel=1
pkgdesc="Instrument file software library"
arch=(x86_64)
url="https://github.com/swami/libinstpatch"
license=(LGPL-2.1-only)
depends=(
lib32-gcc-libs
lib32-glibc
"libinstpatch=$pkgver"
)
makedepends=(
cmake
glib2-devel
lib32-glib2
lib32-libsndfile
python
)
provides=(libinstpatch-1.0.so)
source=($url/archive/v$pkgver/$_name-v$pkgver.tar.gz)
b2sums=('7e78b0f868cd805a3633eeecbbd0b70b1d7f344372a96b0c08b1beabf5596a2d768db30499e802ab53ce22fa05e457c26b2d24d5f29285040807dc0d54a0d10e')
build() {
local cmake_options=(
-B build
-D CMAKE_BUILD_TYPE=None
-D CMAKE_INSTALL_PREFIX=/usr
-D CMAKE_INSTALL_LIBDIR=/usr/lib32
-S $_name-$pkgver
-Wno-dev
)
export CFLAGS+=" $CPPFLAGS"
export CXXFLAGS+=" $CPPFLAGS"
export CC='gcc -m32'
export PKG_CONFIG_PATH='/usr/lib32/pkgconfig'
cmake "${cmake_options[@]}"
cmake --build build --verbose
}
package() {
depends+=(
lib32-glib2 libglib-2.0.so libgobject-2.0.so
lib32-libsndfile libsndfile.so
)
DESTDIR="$pkgdir" cmake --install build
rm -rf "$pkgdir/usr/include"
}
|