summaryrefslogtreecommitdiff
path: root/repo/transmission/transmission.xibuild
blob: 7e0c19d1db17bf4b20cc1326ba34d61039ffc532 (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
#!/bin/sh

NAME="transmission"
DESC="Lightweight GTK BitTorrent client"

MAKEDEPS="cmake curl dbus-glib ninja gtk3 intltool libevent libnotify openssl tar"

PKG_VER=3.00
SOURCE="https://github.com/transmission/transmission-releases/raw/master/transmission-$PKG_VER.tar.xz"

ADDITIONAL="
disable-missing-lang.patch
fix-gettext-sigsegv.patch
transmission-daemon.confd
transmission-daemon.initd
"

build() {
	cmake -B build -G Ninja \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DBUILD_SHARED_LIBS=True \
		-DCMAKE_BUILD_TYPE=MinSizeRel \
		-DENABLE_GTK=TRUE \
		-DENABLE_CLI=TRUE \
        -DENABLE_NLS=FALSE \
		-DENABLE_TESTS=FALSE \
		-DWITH_SYSTEMD=FALSE \
		-DINSTALL_LIB=TRUE
	cmake --build build
}

package() {
	DESTDIR="$PKG_DEST" cmake --install build

	install -D -m755 "$BUILD_ROOT"/transmission-daemon.initd \
		"$PKG_DEST"/etc/init.d/transmission-daemon
	install -D -m644 "$BUILD_ROOT"/transmission-daemon.confd \
		"$PKG_DEST"/etc/conf.d/transmission-daemon
}