Date: Thursday, May 31, 2018 @ 02:29:16 Author: foutrelis Revision: 333896
archrelease: copy trunk to community-staging-x86_64 Added: trojan/repos/community-staging-x86_64/ trojan/repos/community-staging-x86_64/PKGBUILD (from rev 333894, trojan/trunk/PKGBUILD) ----------+ PKGBUILD | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) Copied: trojan/repos/community-staging-x86_64/PKGBUILD (from rev 333894, trojan/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2018-05-31 02:29:16 UTC (rev 333896) @@ -0,0 +1,26 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: GreaterFire <GreaterFire at protonmail dot com> + +pkgname=trojan +pkgver=1.3.0 +pkgrel=2 +pkgdesc="An unidentifiable mechanism that helps you bypass GFW" +arch=('x86_64') +url="https://github.com/trojan-gfw/trojan" +license=('GPL3') +depends=('boost-libs' 'ca-certificates') +makedepends=('cmake' 'boost') +source=("$pkgname-$pkgver.tar.gz::https://github.com/trojan-gfw/$pkgname/archive/v$pkgver.tar.gz") +backup=('etc/trojan.json') +sha512sums=('a4bef8a63438b7c34433e4f17007a74357082d98c5f7740a90edaeee0b2e481b5c96be8c0133fac64ee466d41a3c003b4e532d2b3a8fe92817c37945aff7a885') + +build() { + cd $pkgname-$pkgver + cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr . + make +} +package() { + cd $pkgname-$pkgver + make DESTDIR="$pkgdir" install +}