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

Evangelos Foutras foutrelis at archlinux.org
Tue Jan 28 02:58:33 UTC 2020


    Date: Tuesday, January 28, 2020 @ 02:58:33
  Author: foutrelis
Revision: 557044

archrelease: copy trunk to community-staging-x86_64

Added:
  trojan/repos/community-staging-x86_64/
  trojan/repos/community-staging-x86_64/PKGBUILD
    (from rev 557043, trojan/trunk/PKGBUILD)

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

Copied: trojan/repos/community-staging-x86_64/PKGBUILD (from rev 557043, trojan/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-01-28 02:58:33 UTC (rev 557044)
@@ -0,0 +1,35 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: GreaterFire <GreaterFire at protonmail dot com>
+
+pkgname=trojan
+pkgver=1.14.1
+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' 'mariadb-libs')
+optdepends=('ca-certificates: server certificate verification'
+            'mariadb: advanced user management')
+makedepends=('cmake' 'boost' 'openssl' 'mariadb-libs')
+checkdepends=('openssl' 'python' 'curl' 'netcat')
+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=('c8fcdae584e742d958c896e3a18605f22073341a8227a1d7cb116e9f2ddadd6e5007bfe40ff765d564f8659cd9e9d11731d95a5c74459b0698cc48dac49ead19')
+
+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