[arch-commits] Commit in trojan/repos (2 files)

Felix Yan felixonmars at archlinux.org
Wed Sep 5 21:09:11 UTC 2018


    Date: Wednesday, September 5, 2018 @ 21:09:11
  Author: felixonmars
Revision: 377037

archrelease: copy trunk to community-testing-x86_64

Added:
  trojan/repos/community-testing-x86_64/
  trojan/repos/community-testing-x86_64/PKGBUILD
    (from rev 377036, trojan/trunk/PKGBUILD)

----------+
 PKGBUILD |   36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

Copied: trojan/repos/community-testing-x86_64/PKGBUILD (from rev 377036, trojan/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2018-09-05 21:09:11 UTC (rev 377037)
@@ -0,0 +1,36 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: GreaterFire <GreaterFire at protonmail dot com>
+
+pkgname=trojan
+pkgver=1.7.0
+pkgrel=1
+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