From 66c326b6d65388e9f1003715ad9675505f01f9d2 Mon Sep 17 00:00:00 2001 From: davidovski Date: Fri, 3 Jun 2022 13:05:13 +0100 Subject: added porting from alpine linux --- repo/transmission/transmission.xibuild | 40 ++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 repo/transmission/transmission.xibuild (limited to 'repo/transmission/transmission.xibuild') 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 +} -- cgit v1.2.1