[arch-commits] Commit in trojan/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Tue Sep 18 02:18:38 UTC 2018
Date: Tuesday, September 18, 2018 @ 02:18:37
Author: foutrelis
Revision: 382854
archrelease: copy trunk to community-staging-x86_64
Added:
trojan/repos/community-staging-x86_64/
trojan/repos/community-staging-x86_64/PKGBUILD
(from rev 382853, trojan/trunk/PKGBUILD)
----------+
PKGBUILD | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
Copied: trojan/repos/community-staging-x86_64/PKGBUILD (from rev 382853, trojan/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2018-09-18 02:18:37 UTC (rev 382854)
@@ -0,0 +1,35 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: GreaterFire <GreaterFire at protonmail dot com>
+
+pkgname=trojan
+pkgver=1.7.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' 'openssl' 'libmariadbclient')
+optdepends=('ca-certificates: server certificate verification'
+ 'mariadb: advanced user management')
+makedepends=('cmake' 'boost' 'openssl' 'libmariadbclient')
+checkdepends=('openssl' 'python' 'curl')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/trojan-gfw/$pkgname/archive/v$pkgver.tar.gz")
+backup=('etc/trojan.json'
+ 'etc/trojan/config.json')
+sha512sums=('d3ae67c06d07f10177907fa92a00765bc5e5221f888ff201175904e5a34733c99e8b3c18683d87a43272855a7dec02272502839e385cd73fc32eda0584ace039')
+
+build() {
+ cd $pkgname-$pkgver
+ cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr .
+ make
+}
+
+check() {
+ cd $pkgname-$pkgver
+ ctest
+}
+
+package() {
+ cd $pkgname-$pkgver
+ make DESTDIR="$pkgdir" install
+}
More information about the arch-commits
mailing list