aports/testing/identme/APKBUILD
2025-04-03 12:33:01 +00:00

30 lines
756 B
Text

# Contributor: Pierre Carrier <pc@rrier.fr>
# Maintainer: Pierre Carrier <pc@rrier.fr>
pkgname=identme
pkgver=0.6.0
pkgrel=0
pkgdesc="Public IP address lookup"
url="https://www.ident.me"
arch="all"
license="0BSD"
makedepends="cmake curl-dev"
options="net"
source="$pkgname-$pkgver.tar.gz::https://github.com/pcarrier/ident.me/archive/refs/tags/v$pkgver.tar.gz"
builddir="$srcdir/ident.me-$pkgver"
build() {
cmake -DCMAKE_INSTALL_PREFIX=/usr -B build cli
cmake --build build
}
check() {
./build/identme --json | grep continent
}
package() {
DESTDIR="$pkgdir" cmake --install build
}
sha512sums="
be3c561b876ec6b8b7f87c93d5c389c40baf758534c3cfb9a5631775b0fac4a44c43fcfbde18383c474354606e1e982f5d66d5e7fe9332ba0c09892cca4ef69d identme-0.6.0.tar.gz
"