summaryrefslogtreecommitdiff
path: root/repo/transmission/transmission.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-06-03 13:05:13 +0100
committerdavidovski <david@davidovski.xyz>2022-06-03 13:05:13 +0100
commit66c326b6d65388e9f1003715ad9675505f01f9d2 (patch)
tree40d7355cccfa3464902cf339a563e744c28a7101 /repo/transmission/transmission.xibuild
parentfccdaa986f67f820df2914bef851d5fed77abac8 (diff)
added porting from alpine linux
Diffstat (limited to 'repo/transmission/transmission.xibuild')
-rw-r--r--repo/transmission/transmission.xibuild40
1 files changed, 40 insertions, 0 deletions
diff --git a/repo/transmission/transmission.xibuild b/repo/transmission/transmission.xibuild
new file mode 100644
index 0000000..7e0c19d
--- /dev/null
+++ b/repo/transmission/transmission.xibuild
@@ -0,0 +1,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
+}