summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5a4602cb53515a0d96baf988eb927f18017c7f28 (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
# Maintainer: TX1683 <tx1683@gmail.com>

_pkgname=galaxy42
pkgname=$_pkgname-git
pkgver=0.3.1b.r137.g69ccfe96
pkgrel=1
pkgdesc='An encrypted Meshnet and VPN software.'
url='https://github.com/yedino/galaxy42'
license=('GPL3')
arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h')
depends=('libtool' 'boost' 'libsodium' 'fftw')
makedepends=('git' 'gcc' 'cmake' 'bash')
provides=("$_pkgname")
conflicts=("$_pkgname")
source=("git+$url")
sha512sums=('SKIP')

pkgver() {
  cd $_pkgname
  git describe --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
install="${pkgname}.install"

build() {
  cd $_pkgname 
  ./do --go
}

package() {
  cd $_pkgname/build
  install -Dm754 tunserver.elf "$pkgdir/usr/bin/tunserver.elf"
}