blob: 0be96365ad967cfc0e3081f7f5a2102d03229462 (
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
|
# Maintainer: Mark Wagie <mark dot wagie at tutanota dot com>
# Contributor: Kyle Laker <kyle@laker.email>
pkgname=warpinator-git
pkgver=1.2.4.r0.g3a524da
pkgrel=2
pkgdesc="Share files across the LAN"
arch=('any')
url="https://github.com/linuxmint/warpinator"
license=('GPL3')
depends=('gtk3' 'libnm' 'python-cryptography' 'python-gobject' 'python-grpcio'
'python-netaddr' 'python-netifaces' 'python-protobuf' 'python-pynacl'
'python-setproctitle' 'python-setuptools' 'python-zeroconf' 'python-xapp' 'xapps')
makedepends=('git' 'meson' 'polkit')
optdepends=('ufw: Configure firewall rules')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=('git+https://github.com/linuxmint/warpinator.git')
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/${pkgname%-git}"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd "$srcdir/${pkgname%-git}"
# Fix hard-coded libexec dir
sed -i 's/libexec/lib/g' \
"bin/${pkgname%-git}.in" \
"data/org.x.${pkgname%-git}.policy.in.in" \
install-scripts/download_zeroconf.py
sed -i 's/@libexecdir@/@libdir@/g' src/config.py.in
}
build() {
arch-meson "${pkgname%-git}" build -Dbundle-zeroconf=false
meson compile -C build
}
# No tests defined
#check() {
# meson test -C build --print-errorlogs
#}
package() {
DESTDIR="$pkgdir" meson install -C build
}
|