summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 30e24251db045aa701e7daf2e3397c1bcce8fb1a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Maintainer: Mark Wagie <mark dot wagie at tutanota dot com>
pkgname=whatip
pkgver=1.2
pkgrel=1
pkgdesc="Info on your IP"
arch=('any')
url="https://gabmus.gitlab.io/whatip"
license=('GPL3')
depends=('iproute2' 'libadwaita' 'python-requests' 'python-netaddr' 'python-gobject')
makedepends=('blueprint-compiler' 'gobject-introspection' 'meson')
checkdepends=('appstream')
optdepends=('avahi: hostname resolution')
source=("https://gitlab.gnome.org/GabMus/whatip/-/archive/$pkgver/$pkgname-$pkgver.tar.gz")
sha256sums=('645af543c58f1c048af19a085f9d6b17d2e627c21e1d2c9746eb4a3ade4a537a')

build() {
  arch-meson "$pkgname-$pkgver" build
  meson compile -C build
}

check() {
  meson test -C build --print-errorlogs || :
}

package() {
  meson install -C build --destdir "$pkgdir"
}