summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorGabriele Musco2020-02-08 12:57:02 +0100
committerGabriele Musco2020-02-08 12:57:02 +0100
commit21160db877c43b80a8b90d6eb4bd3b4f0e26223e (patch)
tree9fd0821fbc2459f38c9434d3af8145383bbf92ae /PKGBUILD
downloadaur-21160db877c43b80a8b90d6eb4bd3b4f0e26223e.tar.gz
first release
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD45
1 files changed, 45 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..3fe8f827a8b
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,45 @@
+# Maintainer: Gabriele Musco <gabmus@disroot.org>
+# Upstream URL: https://gitlab.gnome.org/gabmus/whatip
+
+pkgname=whatip-git
+pkgver=c6d0337
+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-pyroute2'
+ '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
+}