summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3ed56263a1c51ff68e1ca9799d395e0d8a065d21 (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
# Maintainer: tleydxdy <shironeko(at)waifu(dot)club>

pkgname=gnunet-user
pkgver=0.15.0
pkgrel=1
pkgdesc="A framework for secure peer-to-peer networking - single user config"
arch=('any')
url="https://gnunet.org"
license=('AGPL')
provides=('gnunet')
conflicts=('gnunet')
depends=('gnutls' 'gnurl' 'libmicrohttpd' 'jansson' 'libsodium')
makedepends=('libextractor')
optdepends=('bluez: for bluetooth support'
            'opus: for conversation tool'
            'libpulse: for conversation tool'
            'libogg: for conversation tool'
            'nss: certutil binary, for gnunet-gns-proxy-setup-ca'
            'zbar: for gnunet-qr'
            'pbc: for Attribute-Based Encryption and Identity Provider functionality'
            'libgabe: for Attribute-Based Encryption and Identity Provider functionality'
            'miniupnpc: for traversing NAT boxes more reliably'
            'perl: for some utilities'
            'texlive-most: for gnunet-bcd'
            'python: for test-suite')
options=('!makeflags')
source=("https://ftpmirror.gnu.org/gnu/gnunet/gnunet-${pkgver}.tar.gz"
        "gnunet.service")
sha256sums=('cca23d6fb40890a5eb2ccae4b8f7e74c8e4e84d3fca2f419d775cb4a58dd9a67'
            'cc5ac23e64aa7c42efb86dfc8dd644f05b9b5d838e881642e8562374e7915825')

build() {
    cd "${srcdir}/gnunet-${pkgver}"

    ./configure --prefix=/usr --with-extractor
    make
}

package() {
    cd "${srcdir}/gnunet-${pkgver}"

    make DESTDIR="${pkgdir}" install
    install -Dm0644 "${srcdir}/gnunet.service" "${pkgdir}/usr/lib/systemd/user/gnunet.service"
}