[arch-commits] Commit in trojan/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Tue Jan 15 09:42:40 UTC 2019
Date: Tuesday, January 15, 2019 @ 09:42:39
Author: felixonmars
Revision: 423246
archrelease: copy trunk to community-staging-x86_64
Added:
trojan/repos/community-staging-x86_64/
trojan/repos/community-staging-x86_64/PKGBUILD
(from rev 423245, trojan/trunk/PKGBUILD)
----------+
PKGBUILD | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
Copied: trojan/repos/community-staging-x86_64/PKGBUILD (from rev 423245, trojan/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2019-01-15 09:42:39 UTC (rev 423246)
@@ -0,0 +1,35 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: GreaterFire <GreaterFire at protonmail dot com>
+
+pkgname=trojan
+pkgver=1.9.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=('3d671d1944bf79879bde8ba74d9c3270e475ff1c5d35ff1ef367391fdce223bd24e4c1072ae8506002e5ee10944bfbe10cfb434e8908c9670535c38b275293fa')
+
+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