summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b1eed9b9c1cfbe2c96bff52d2131e0f277cee48e (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=0.1.2.r1.g2f82cfb
pkgrel=1
pkgdesc='Info on your IP'
arch=('any')
url='https://gitlab.gnome.org/gabmus/whatip'
license=('GPL3')
depends=(
    'gtk3'
    'python'
    'libhandy'
    'python-requests'
    'python-netaddr'
    'iproute2'
    'python-gobject'
    'gobject-introspection'
)
makedepends=('git' 'meson')
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
}