gftp-smb-git
LOW
maintainer sfs
0 votes
scanned 2026-08-19 15:42:02.122486
Why flagged
Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.
Triggered rules
Low
Few votes, recently uploaded
zero_votes_recent
Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.
PKGBUILD
1
# Maintainer: sfs <sfslinux@gmail.com>
2
3
pkgname=gftp-smb-git
4
pkgver=2.9.1b.r53.gf64d27b
5
pkgrel=1
6
pkgdesc="Free multithreaded file transfer client, with an SMB/CIFS backend and an updated Russian translation"
7
arch=('i686' 'x86_64')
8
url="https://www.gftp.org/"
9
license=('MIT')
10
depends=('glibc' 'gtk3' 'libsmb2' 'openssl' 'readline')
11
makedepends=('git' 'meson')
12
provides=("gftp=$pkgver" "gftp-git=$pkgver")
13
conflicts=('gftp' 'gftp-git')
14
# Both patches ship inside this package repository, so they carry real
15
# checksums. Do not replace them with SKIP, and do not pull the Russian one
16
# from the attachment on https://github.com/masneyb/gftp/issues/202 - an
17
# unverified download would silently change the build on other machines.
18
source=("git+https://github.com/masneyb/gftp.git"
19
'gftp-ru-translation.patch'
20
'gftp-cifs.patch'
21
'gftp-wayland-icon.patch'
22
'gftp-smb-ru.patch'
23
'README.ru.md'
24
'README.md'
25
)
26
sha256sums=('SKIP'
27
'5b957f66ccd1d612d6c99dc343dc5ebec919b32009185e24aa58a6db48d933b4'
28
'c023db3bc194760c3282bc2047837be13923d937bb04c72d89d8fa75ccb6dcc7'
29
'436e43a77508b7205ef195465061b2492b9b66879c427bf9721885c69620455f'
30
'50be56e1831810921775404a85797a7621b3472bd60b01ea5595cc1e51fc52c6'
31
'022236af1ba0a3f9e40066b640d8e8b7288355d6ba155f24229107b104a1fdbf'
32
'9b1aa7914212e65de1fe8664a586953bce7ee14eedb6b4b9d7ed4b9a46f25eb6'
33
)
34
35
pkgver() {
36
cd "gftp"
37
38
# The trailing [a-z]? is load-bearing: every real gFTP release is tagged
39
# 2.9.1b, 2.9.0b, 2.8.0b ... A digits-only filter matches only the 2008 tag
40
# 2.0.19 and reports the package as 2.0.19.rNNN instead of 2.9.1b.rNN.
41
_tag=$(git tag -l --sort -v:refname | grep -E '^v?[0-9][0-9.]*[a-z]?$' | head -n1)
42
_rev=$(git rev-list --count "$_tag"..HEAD)
43
_hash=$(git rev-parse --short HEAD)
44
printf "%s.r%s.g%s" "$_tag" "$_rev" "$_hash" | sed 's/^v//'
45
}
46
47
prepare() {
48
cd "gftp"
49
patch -Np1 -i "$srcdir/gftp-ru-translation.patch"
50
patch -Np1 -i "$srcdir/gftp-cifs.patch"
51
patch -Np1 -i "$srcdir/gftp-wayland-icon.patch"
52
# must come last: it translates strings that gftp-cifs.patch introduces,
53
# against the po/ru.po that gftp-ru-translation.patch rewrites
54
patch -Np1 -i "$srcdir/gftp-smb-ru.patch"
55
}
56
57
58
build() {
59
cd "gftp"
60
61
meson setup \
62
--buildtype=plain \
63
--prefix="/usr" \
64
--sbindir="bin" \
65
-Dgtk2="false" \
66
-Dgtk3="true" \
67
-Dsmb="true" \
68
"_build"
69
meson compile -C "_build"
70
}
71
72
package() {
73
cd "gftp"
74
75
meson install -C "_build" --destdir "$pkgdir"
76
install -Dm644 "LICENSE" -t "$pkgdir/usr/share/licenses/$pkgname"
77
install -Dm644 "../README.ru.md" -t "$pkgdir/usr/share/doc/smb"
78
install -Dm644 "../README.md" -t "$pkgdir/usr/share/doc/smb"
79
}
80
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-08-19 15:42:02 | Low | 1 |