diff --git a/pkgs/libnl-tiny/build.sh b/pkgs/libnl-tiny/build.sh index 4995276..9c5cbdd 100644 --- a/pkgs/libnl-tiny/build.sh +++ b/pkgs/libnl-tiny/build.sh @@ -2,30 +2,19 @@ pkgname=libnl-tiny pkgver=master 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 - cp ../cmake-no-extra-errs.patch . - mv $pkgname-HEAD-* $pkgname-$pkgver - mkdir $pkgname-$pkgver/build cd $pkgname-$pkgver - patch -p1 < ../cmake-no-extra-errs.patch } build() { cd $pkgname-$pkgver - cd build - cmake -G Ninja ../ \ - -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DCMAKE_INSTALL_LIBDIR=lib - samu + gmake prefix=/usr all CC=cc } package() { cd $pkgname-$pkgver - cd build - DESTDIR=$pkgdir samu install - ln -sr $pkgdir/usr/lib/pkgconfig/libnl-tiny.pc $pkgdir/usr/lib/pkgconfig/libnl-3.0.pc + gmake prefix=/usr DESTDIR=$pkgdir install } license() {