summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d6383b5fa041b7418b686cfad9a6c19d920f478d (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: mutantmonkey <aur@mutantmonkey.mx>
pkgname=onionlink
pkgver=4.c26f0c0
pkgrel=1
pkgdesc="Very simple peer-to-peer file sharing using Onion services"
url="https://github.com/mutantmonkey/onionlink"
arch=('i686' 'x86_64')
license=('WTFPL')
makedepends=('git' 'go')
source=("git+https://github.com/mutantmonkey/onionlink.git")
sha256sums=('SKIP')

pkgver() {
  cd $srcdir/$pkgname
  echo $(git rev-list --count master).$(git rev-parse --short master)
}

build() {
  cd "$srcdir/$pkgname"
  GOPATH="$srcdir" go get -v -d
  GOPATH="$srcdir" go build
}

package() {
  cd "$srcdir/$pkgname"
  install -Dm0755 onionlink "${pkgdir}/usr/bin/onionlink"
  install -Dm644 COPYING \
    "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
}

# vim:set ts=2 sw=2 et: