diff options
author | davidovski <david@davidovski.xyz> | 2022-06-03 13:05:13 +0100 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-06-03 13:05:13 +0100 |
commit | 66c326b6d65388e9f1003715ad9675505f01f9d2 (patch) | |
tree | 40d7355cccfa3464902cf339a563e744c28a7101 /repo/transmission/transmission.xibuild | |
parent | fccdaa986f67f820df2914bef851d5fed77abac8 (diff) |
added porting from alpine linux
Diffstat (limited to 'repo/transmission/transmission.xibuild')
-rw-r--r-- | repo/transmission/transmission.xibuild | 40 |
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 +} |