jobextra/gnunet-gtk/PKGBUILD

80 lines
2.3 KiB
Bash

#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=gnunet-gtk
pkgdesc="A framework for secure peer-to-peer networking (GTK 3 interfaces)"
pkgver=0.19.2.1.r0.g077b6d87
pkgrel=02
url="https://gnunet.org"
conflicts=('gnunet-gtk-git')
provides=('gnunet-gtk')
depends=('gnunet' 'gtk3' 'libglade' 'glade')
optdepends=('qrencode')
source=('git+https://git.gnunet.org/gnunet-gtk.git'
'gnunet-peerinfo-gtk.desktop'
'gnunet-peerinfo-gtk.svg'
'gnunet-statistics-gtk.desktop'
'gnunet-statistics-gtk.svg')
pkgver() {
cd "${pkgname}" > /dev/null 2>&1
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "${srcdir}/$pkgname"
./bootstrap
./configure --prefix=/usr --with-gnunet=/usr
make
}
package() {
cd "${srcdir}/$pkgname"
make DESTDIR="${pkgdir}" install
install -dm755 "${pkgdir}/usr/share/applications"
install -Dm644 "${srcdir}/gnunet-peerinfo-gtk.desktop" \
"${pkgdir}/usr/share/applications/gnunet-peerinfo-gtk.desktop"
install -Dm644 "${srcdir}/gnunet-statistics-gtk.desktop" \
"${pkgdir}/usr/share/applications/gnunet-statistics-gtk.desktop"
install -dm755 "${pkgdir}/usr/share/icons/hicolor/scalable/apps"
install -Dm 644 "${srcdir}/gnunet-peerinfo-gtk.svg" \
"${pkgdir}/usr/share/icons/hicolor/scalable/apps/gnunet-peerinfo-gtk.svg"
install -Dm 644 "${srcdir}/gnunet-statistics-gtk.svg" \
"${pkgdir}/usr/share/icons/hicolor/scalable/apps/gnunet-statistics-gtk.svg"
}
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
license=('GPL3')
sha256sums=(SKIP)
sha256sums=(SKIP # gnunet-gtk git
ff025def7fd3383cf9ba0809926802d2476ef73ccbc91b6ad317554987ade4d7 # gnunet-peerinfo-gtk.desktop
43e743bcf971c53ab4be0955d29b1915624a34f95785df1bf47a3fa45e6a8039 # gnunet-peerinfo-gtk.svg
e82947317b62c86de52065bc7c5e4a3899a587aedcaa039effda3dd8da23d79b # gnunet-statistics-gtk.desktop
736d5e7d6aaaefad889ee2aa3ca7adc4ffefd4130e3b55380aa1267888606618) # gnunet-statistics-gtk.svg
## ad6493f3299e3e6d74e8687010cbe9364e927fb17eaa40dbf2e7ed5ef91cc1a4 gnunet-gtk-0.19.2.1.r0.g077b6d87-02-x86_64.pkg.tar.lz