PKGBUILD 1.4 KB
Newer Older
Valo's avatar
Valo committed
1 2 3 4 5 6
# Maintainer: svalo <valo@eigenlab.org>
# Contributor: David Costa <david@zarel.net>
# Contributor: fauno <fauno@kiwwwi.com.ar>
# Based on monkeysphere-git from
# Contributor: Olivier Mehani <shtrom-arch@ssji.net>
pkgname=monkeysphere
Valo's avatar
Valo committed
7 8
pkgver=0.44
pkgrel=1
Valo's avatar
Valo committed
9 10 11 12
pkgdesc="Leverage the OpenPGP web of trust for OpenSSH and Web authentication"
arch=('any')
url="http://web.monkeysphere.info/"
license=('GPL3')
Valo's avatar
Valo committed
13 14
depends=('agent-transfer' 'lockfile-progs' 'perl-crypt-openssl-rsa' 'perl-digest-sha1' 'perl-crypt-openssl-bignum' 'gnupg>=2.1.22')
checkdepends=('socat' 'openssh' 'cpio' 'gnupg>=2.1.22' 'perl-crypt-openssl-bignum')
Valo's avatar
Valo committed
15
source=(https://archive.monkeysphere.info/debian/pool/${pkgname}/m/${pkgname}/${pkgname}_${pkgver}.orig.tar.gz
16 17 18
    binmerge.patch
    exclude-agent.patch
    )
Valo's avatar
Valo committed
19

Valo's avatar
Valo committed
20
sha256sums=('6ac6979fa1a4a0332cbea39e408b9f981452d092ff2b14ed3549be94918707aa'
Valo's avatar
Valo committed
21 22
            'e0cdadd4f01deab281cb66543eef19216bd762cb41774d3b498bd2e7c17816e4'
            '90c3fcc64cbd2329489225af39afa52dc8ebeb6ad0877532c2842ccf616df4ea')
Valo's avatar
Valo committed
23 24 25 26

install=monkeysphere.install

prepare() {
27
  cd "${srcdir}/${pkgname}-${pkgver}"
Valo's avatar
Valo committed
28
  patch -Ni "${srcdir}/binmerge.patch"
29
  patch -Ni "${srcdir}/exclude-agent.patch"
Valo's avatar
Valo committed
30 31
}

32 33 34 35
check() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  make test
}
Valo's avatar
Valo committed
36 37

package() {
38 39 40 41
  cd "${srcdir}/${pkgname}-${pkgver}"
  make DESTDIR="${pkgdir}/" install
  mkdir -p "${pkgdir}/var/lib/monkeysphere"
  chown root:root "${pkgdir}/var/lib/monkeysphere"
Valo's avatar
Valo committed
42
}