blob: 1cb9b914863f3bfb727092a662ea87579dd07417 (
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
|
#!/bin/sh
NAME="yajl"
DESC="Yet Another JSON Library (YAJL)"
MAKEDEPS=" cmake"
PKG_VER=2.1.0
SOURCE="https://dev.alpinelinux.org/archive/yajl/yajl-$PKG_VER.tar.gz"
build() {
cmake -B build . \
-DCMAKE_BUILD_TYPE=MinSizeRel \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_INSTALL_PREFIX=/usr
make -C build
}
package() {
make install -C build DESTDIR="$PKG_DEST"
mkdir -p "$PKG_DEST"/usr/lib
mv "$PKG_DEST"/usr/share/pkgconfig "$PKG_DEST"/usr/lib/
}
|