Skip to content

Instantly share code, notes, and snippets.

@cuihaoleo
Created August 21, 2015 16:24
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cuihaoleo/1482d721dbcfb577bbb8 to your computer and use it in GitHub Desktop.
Save cuihaoleo/1482d721dbcfb577bbb8 to your computer and use it in GitHub Desktop.
# 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