PKGBUILD 1.34 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
pkgver=0.42
Valo's avatar
Valo committed
8
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')
13
depends=('agent-transfer' 'lockfile-progs' 'perl-crypt-openssl-rsa' 'perl-digest-sha1' 'gnupg>=2.1.13')
Valo's avatar
Valo committed
14
checkdepends=('socat' 'openssh' 'cpio' 'gnupg>=2.1.13')
Valo's avatar
Valo committed
15
source=(http://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=('c1c956b1c86aaa44134fc1a9d75f5aef61266e3a9d8a6218b45d6c54bb7c58c1'
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
}