summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 164120c0b70ec28f9aeca13bbfe22404cec44c60 (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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Maintainer: Gabriele Musco <gabmus@disroot.org>
# Upstream URL: https://gitlab.gnome.org/gabmus/whatip

pkgname=whatip-git
pkgver=1.2.r0.g678ba7e
pkgrel=1
pkgdesc='Info on your IP'
arch=('any')
url='https://gitlab.gnome.org/gabmus/whatip'
license=('GPL3')
depends=(
    'gtk4'
    'python'
    'libadwaita'
    'python-requests'
    'python-netaddr'
    'iproute2'
    'python-gobject'
    'gobject-introspection'
)
makedepends=('git' 'meson' 'blueprint-compiler')
provides=('whatip')
conflicts=('whatip')
source=("whatip::git+https://gitlab.gnome.org/gabmus/whatip")
sha256sums=('SKIP')

pkgver() {
  cd "$srcdir/whatip"
  git describe --long --tags --always | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "$srcdir/whatip"
  rm -rf build
  mkdir build
  cd build
  meson --prefix /usr --buildtype release ..
  ninja
}

package() {
  cd "$srcdir/whatip"
  cd build
  DESTDIR="$pkgdir" ninja install
}