summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorEgor Gushcha2024-01-16 06:10:38 +0600
committerEgor Gushcha2024-01-16 06:10:38 +0600
commit29e4cd53f2dfb5f894a0582d809d8ee177a62057 (patch)
treec1b3257d9a1eb40ec314e357ea5dee93adc68365
parent8370b2f5d86ec51c59c13ed23b63ed83d2fb9238 (diff)
downloadaur-29e4cd53f2dfb5f894a0582d809d8ee177a62057.tar.gz
Add license field, remove $srcdir
-rw-r--r--.SRCINFO1
-rw-r--r--PKGBUILD7
2 files changed, 5 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index ec86410df2e3..a27524eeb7bc 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -5,6 +5,7 @@ pkgbase = snowflake-pt-client-bin
url = https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake
install = snowflake-pt-client-bin.install
arch = x86_64
+ license = BSD-3-Clause
depends = tor
optdepends = tor-browser
backup = etc/tor/snowflake
diff --git a/PKGBUILD b/PKGBUILD
index c64b9d40658c..2fe95d480030 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,6 +4,7 @@ pkgrel=2
pkgdesc='Pluggable Transport using WebRTC, inspired by Flashproxy'
url=https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake
arch=(x86_64)
+license=(BSD-3-Clause)
depends=(tor)
optdepends=(tor-browser)
backup=(etc/tor/snowflake)
@@ -12,11 +13,11 @@ source=(snowflake-v$pkgver.tar.gz::https://gitlab.torproject.org/tpo/anti-censor
b2sums=(a330fd8f4c8b7858dcdf58865a84f0fda8d3c8ce6b8d2e8e9b50a041349d0e3c8de7f028275bc33344cd1e4060572d64a26b1922f94ad01adc75bacfb2caf057)
package() {
- install -Dm 755 $srcdir/snowflake-v$pkgver/client/client $pkgdir/usr/bin/snowflake-client
+ install -Dm 755 snowflake-v$pkgver/client/client $pkgdir/usr/bin/snowflake-client
echo -e "UseBridges 1\nClientTransportPlugin snowflake exec /usr/bin/snowflake-client" > snowflake
- grep -w Bridge $srcdir/snowflake-v$pkgver/client/torrc >> snowflake
+ grep -w Bridge snowflake-v$pkgver/client/torrc >> snowflake
install -Dm 644 snowflake $pkgdir/etc/tor/snowflake
- install -Dm 644 $srcdir/snowflake-v$pkgver/LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
+ install -Dm 644 snowflake-v$pkgver/LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
}