* update libwlocate to 1:0.1-4

This commit is contained in:
Alexander Baldeck 2024-08-19 03:31:11 +02:00
parent 6f3940acff
commit d289828540
3 changed files with 37 additions and 9 deletions

15
libwlocate/.SRCINFO Normal file
View File

@ -0,0 +1,15 @@
pkgbase = libwlocate
pkgdesc = A shared library that can be used for location-based services
pkgver = 0.1
pkgrel = 4
epoch = 1
url = https://sourceforge.net/projects/libwlocate
arch = x86_64
license = GPL-3.0-or-later
makedepends = git
depends = glibc
depends = wireless_tools
source = git+https://github.com/openwifi-su/lwlocate#tag=v0.1
sha256sums = f4022b1dfcaf7c9a4cc54a913c6246a6f08e1646b71416ffa4794d6a56479f2c
pkgname = libwlocate

View File

@ -0,0 +1,4 @@
[libwlocate]
source = "git"
git = "https://github.com/openwifi-su/lwlocate.git"
prefix = "v"

View File

@ -5,24 +5,33 @@
pkgname=libwlocate
pkgver=0.1
pkgrel=3
pkgrel=4
epoch=1
pkgdesc="A shared library that can be used for location-based services"
pkgdesc='A shared library that can be used for location-based services'
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
url="https://sourceforge.net/projects/libwlocate"
license=(GPL)
depends=(wireless_tools glibc)
source=($pkgname-$pkgver.tar.gz::"https://github.com/openwifi-su/lwlocate/archive/v$pkgver.tar.gz")
sha256sums=('791899f4890fa88553b4e8417376187d7d533ead962f5fe51f598b6ed9a2c258')
url='https://sourceforge.net/projects/libwlocate'
license=(GPL-3.0-or-later)
depends=(glibc
wireless_tools)
makedepends=(git)
source=(git+https://github.com/openwifi-su/lwlocate#tag=v$pkgver)
sha256sums=('f4022b1dfcaf7c9a4cc54a913c6246a6f08e1646b71416ffa4794d6a56479f2c')
prepare() {
cd lwlocate/master
# Honor system CFLAGS
sed -e "s|^DBGFLAGS.*|DBGFLAGS = ${CFLAGS}|" -i Makelib -i Makefile
sed -e "s|LDFLAGS = |LDFLAGS = ${LDFLAGS} |" -i Makefile
}
build() {
cd lwlocate-$pkgver/master
cd lwlocate/master
make -f Makelib
make
}
package() {
cd lwlocate-$pkgver/master
cd lwlocate/master
install -Dm644 libwlocate.so "$pkgdir"/usr/lib/libwlocate.so
install -Dm644 libwlocate.h "$pkgdir"/usr/include/libwlocate.h
install -Dm755 lwtrace "$pkgdir"/usr/bin/lwtrace