blob: 47b52056cf70ed67385bca671808a6da501da3dd (
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
63
64
65
66
67
|
# Maintainer: Rin <icealtria at gmail dot com>
pkgbase=geph5-git
_pkgbase=geph5
pkgname=(
#'geph5-bridge-git'
#'geph5-broker-git'
'geph5-client-gui-git'
'geph5-client-git'
#'geph5-exit-git'
)
pkgver=r569.05b3756
pkgrel=1
pkgdesc="Geph is a modular Internet censorship circumvention system designed specifically to deal with national filtering."
arch=('x86_64')
url="https://github.com/geph-official/geph5"
license=('MPL-2.0')
depends=('gcc-libs' 'glibc')
makedepends=('git' 'cargo')
source=("git+${url}.git"
"https://raw.githubusercontent.com/geph-official/gephgui/master/public/gephlogo.png"
"geph5-client.service"
'geph5-client@.service'
"geph5-client-gui.desktop")
md5sums=('SKIP'
'4655e64a5d56c316383e1ffa79ddc772'
'02a4c190230663efc619f42b75ec817c'
'17ea478eaac2dc3dda008acc63c9bba8'
'374b014018c671a40c3a2b81d1334121')
pkgver() {
cd "${srcdir}"/"${_pkgbase}"/
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
export RUSTUP_TOOLCHAIN=stable
cd "${srcdir}"/"${_pkgbase}"/
cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
}
build() {
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
export CFLAGS+=" -ffat-lto-objects" # https://github.com/launchbadge/sqlx/issues/3149
cd "${srcdir}"/"${_pkgbase}"/
cargo build --frozen --release --manifest-path binaries/geph5-client/Cargo.toml
cargo build --frozen --release --manifest-path binaries/geph5-client-gui/Cargo.toml
}
package_geph5-client-git() {
cd "${srcdir}"/"${_pkgbase}"/
provides=('geph5-client')
conflicts=('geph5-client')
install -Dm0644 "${srcdir}"/geph5-client@.service -t "${pkgdir}"/usr/lib/systemd/system/
install -Dm0644 "${srcdir}"/geph5-client.service -t "${pkgdir}"/usr/lib/systemd/user/
install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/geph5-client"
}
package_geph5-client-gui-git() {
provides=('geph5-client-gui')
conflicts=('geph5-client-gui')
install -Dm0644 "${srcdir}/gephlogo.png" "$pkgdir/usr/share/icons/hicolor/512x512/apps/geph5-client-gui.png"
install -Dm0644 geph5-client-gui.desktop "$pkgdir/usr/share/applications/geph5-client-gui.desktop"
cd "${srcdir}/${_pkgbase}/"
install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/geph5-client-gui"
}
|