use sabotage libnl-tiny
This commit is contained in:
parent
c071af7965
commit
76e9750ee8
1 changed files with 3 additions and 14 deletions
|
@ -2,30 +2,19 @@ pkgname=libnl-tiny
|
||||||
pkgver=master
|
pkgver=master
|
||||||
|
|
||||||
fetch() {
|
fetch() {
|
||||||
curl "https://git.openwrt.org/?p=project/libnl-tiny.git;a=snapshot;h=HEAD;sf=tgz" -o $pkgname-$pkgver.tar.xz
|
curl -L "https://github.com/sabotage-linux/libnl-tiny/archive/refs/heads/master.tar.gz" -o $pkgname-$pkgver.tar.xz
|
||||||
tar -xf $pkgname-$pkgver.tar.xz
|
tar -xf $pkgname-$pkgver.tar.xz
|
||||||
cp ../cmake-no-extra-errs.patch .
|
|
||||||
mv $pkgname-HEAD-* $pkgname-$pkgver
|
|
||||||
mkdir $pkgname-$pkgver/build
|
|
||||||
cd $pkgname-$pkgver
|
cd $pkgname-$pkgver
|
||||||
patch -p1 < ../cmake-no-extra-errs.patch
|
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd $pkgname-$pkgver
|
cd $pkgname-$pkgver
|
||||||
cd build
|
gmake prefix=/usr all CC=cc
|
||||||
cmake -G Ninja ../ \
|
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
|
||||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
||||||
-DCMAKE_INSTALL_LIBDIR=lib
|
|
||||||
samu
|
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd $pkgname-$pkgver
|
cd $pkgname-$pkgver
|
||||||
cd build
|
gmake prefix=/usr DESTDIR=$pkgdir install
|
||||||
DESTDIR=$pkgdir samu install
|
|
||||||
ln -sr $pkgdir/usr/lib/pkgconfig/libnl-tiny.pc $pkgdir/usr/lib/pkgconfig/libnl-3.0.pc
|
|
||||||
}
|
}
|
||||||
|
|
||||||
license() {
|
license() {
|
||||||
|
|
Loading…
Reference in a new issue