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

Evangelos Foutras foutrelis at archlinux.org
Fri Sep 13 10:02:09 UTC 2019


    Date: Friday, September 13, 2019 @ 10:02:09
  Author: foutrelis
Revision: 510119

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: trojan/repos/community-staging-x86_64/PKGBUILD (from rev 510118, trojan/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2019-09-13 10:02:09 UTC (rev 510119)
@@ -0,0 +1,35 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: GreaterFire <GreaterFire at protonmail dot com>
+
+pkgname=trojan
+pkgver=1.12.3
+pkgrel=3
+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')
+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=('f59afa28446dfef8680d7530aaff3609566b2873416bb11f8981ef111f63ed8deeacb2093373012547ede02dfb9beb8d92655b8f9ebafd6012c45b3ce787c22f')
+
+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