Skip to content

Instantly share code, notes, and snippets.

@xentec
Last active April 8, 2016 21:58
Show Gist options
  • Select an option

  • Save xentec/75315c1a0ce54aa92fdb to your computer and use it in GitHub Desktop.

Select an option

Save xentec/75315c1a0ce54aa92fdb to your computer and use it in GitHub Desktop.
# Maintainer: Xentec <xentec at aix0 dot eu>
# Contributor: Oliver (thechauffeur) Weidner <Oliver.Weidner@gmail.com>
pkgname=tinc-nolegacy-git
pkgver=1.1pre11.r311.gea75c24
pkgrel=1
pkgdesc="A full mesh p2p VPN daemon without legacy bloat"
arch=('i686' 'x86_64')
url="https://github.com/xentec/tinc"
license=('GPL')
depends=('lz4' 'miniupnpc')
makedepends=('cmake' 'git')
optdepends=('wxpython: gui support')
provides=('tinc')
conflicts=('tinc' 'tinc-pre' 'tinc-git' 'tinc-custom-git')
source=("$pkgname"::'git+https://github.com/xentec/tinc#branch=bare')
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/$pkgname"
git describe --long | sed -r 's/^release.//;s/([^-]*-g)/r\1/;s/-/./g'
}
prepare() {
cd "$srcdir/$pkgname"
mkdir -p build && cd build
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-Wno-dev \
..
}
build() {
cd "$srcdir/$pkgname/build"
make
}
package() {
cd "$srcdir/$pkgname/build"
make DESTDIR="$pkgdir/" install
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment