summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 43147072e1c1b00cd982f773ee26984c8ccca1f9 (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
# Maintainer: Kevin MacMartin <prurigro@gmail.com>

_pkgname=salsapipe
pkgname=${_pkgname}-git
pkgver=20150727.r26.6d81ace
pkgrel=3
pkgdesc='Encrypted network tunneling using salsa20 from libnettle and GPG from libgpgme'
url='https://github.com/prurigro/salsapipe'
license=('GPL3')
arch=('x86_64')
depends=('gpgme')
makedepends=('git')
source=("git+$url")
sha512sums=('SKIP')

pkgver() {
  cd $_pkgname
  printf "%s.r%s.%s" "$(git show -s --format=%ci master | sed 's/\ .*//g;s/-//g')" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd $_pkgname
  make
}

package() {
  cd $_pkgname
  install -Dm755 salsamsg "$pkgdir/usr/bin/salsamsg"
  install -Dm644 salsamsg.1 "$pkgdir/usr/share/man/man1/salsamsg.1"
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$_pkgname/LICENSE"
}