blob: e4835af7eb952e6552d2e483d4671529add7b38a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
# Maintainer: ahrs <Forward dot to at hotmail dot co dot uk>
pkgname='alkasir-client'
pkgver=0.4.7
pkgrel=1
arch=(
'x86_64'
'i686'
)
if [ "$CARCH" == "x86_64" ]
then
_arch="amd64"
else
_arch="386"
fi
url="https://alkasir.com/"
depends=('glibc')
makedepends=('links') # Links is needed to download the license agreement
optdepends=('google-chrome'
'chromium'
)
licenseURL='https://alkasir.com/en/License.html'
license=("custom"
"$licenseURL"
)
pkgdesc="Alkasir is a cross-platform, open-source and robust website censorship circumvention tool that also maps censorship patterns around the world."
source=("alkasir-client.service")
md5sums=('8068200941009b41885ffa93659f7f6e')
source_i686=("https://github.com/alkasir/alkasir/releases/download/$pkgver/alkasir-client_linux-$_arch.tar.gz")
source_x86_64=("https://github.com/alkasir/alkasir/releases/download/$pkgver/alkasir-client_linux-$_arch.tar.gz")
md5sums_x86_64=('8490b46497d51de548341cf81d7989ee')
md5sums_i686=('0c51a3a0a43d1af3a76f6e8860fca301')
install="alkasir-client.install"
_pkgarchive="alkasir-client-linux-$_arch"
prepare() {
# The client currently isn't distributed with a license so we download it from the web...
if [ ! -f "$srcdir/$_pkgarchive/LICENSE" ]
then
links -dump "$licenseURL" > "$srcdir/$_pkgarchive/LICENSE"
fi
if [ "$_arch" == "386" ]
then
sed -i 's/amd64/386/g' "$srcdir/alkasir-client.service" # Alter the paths in the service file for 32bit systems
fi
}
package() {
mkdir -p "$pkgdir/opt/$pkgname-linux-$_arch"
cp -a "$srcdir/$_pkgarchive/." "$pkgdir/opt/$pkgname-linux-$_arch/"
install -D -m644 "$srcdir/$pkgname.service" "$pkgdir/usr/lib/systemd/user/$pkgname.service"
install -D -m644 "$srcdir/$_pkgarchive/LICENSE" "$pkgdir/usr/share/licenses/$_pkgarchive/LICENSE"
}
|