mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-05 09:27:19 +02:00
30 lines
756 B
Text
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
|
|
"
|