Skip to content

Instantly share code, notes, and snippets.

@cuihaoleo
Created Aug 21, 2015
Embed
What would you like to do?
# Maintainer: CUI Hao <cuihao.leo@gmail.com>
pkgname=toxvpn-git
pkgver=20150710
pkgrel=1
pkgdesc="toxvpn is a powerful tool that allows one to make tunneled point to point connections over Tox."
arch=(i686 x86_64)
url=https://github.com/cleverca22/toxvpn
license=(GPL3)
depends=(tox)
makedepends=(git)
provides=(${pkgname%-*})
source=($pkgname::git://github.com/cleverca22/${pkgname%-*}.git)
sha512sums=('SKIP')
pkgver() {
cd $pkgname/
git log -1 --format=%cd --date=short | sed 's_-__g'
}
build() {
cd "$srcdir/$pkgname"
cmake .
make
}
package() {
cd "$srcdir/$pkgname"
mkdir -p $pkgdir/usr/bin
install -Dm 755 toxvpn $pkgdir/usr/bin
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment