67 lines
2.4 KiB
Bash
67 lines
2.4 KiB
Bash
# Template file for 'transmission'
|
|
pkgname=transmission
|
|
version=4.0.6
|
|
revision=1
|
|
build_style=cmake
|
|
configure_args="
|
|
-DENABLE_CLI=ON
|
|
-DENABLE_GTK=ON
|
|
-DENABLE_QT=ON
|
|
-DUSE_QT_VERSION=6
|
|
-DWITH_SYSTEMD=OFF
|
|
-DENABLE_MAC=OFF"
|
|
hostmakedepends="gettext glib-devel pkg-config qt6-base qt6-tools"
|
|
makedepends="dbus-glib-devel gtkmm4-devel glibmm2.68-devel gtk4-devel
|
|
libcurl-devel libevent-devel qt6-svg-devel libglvnd-devel libpsl-devel
|
|
libdeflate-devel miniupnpc-devel libnatpmp-devel openssl-devel libb64-devel"
|
|
short_desc="Fast, easy and free BitTorrent client"
|
|
maintainer="Jason Elswick <jason@jasondavid.tv>"
|
|
license="MIT, GPL-2.0-or-later"
|
|
homepage="https://www.transmissionbt.com"
|
|
changelog="https://github.com/transmission/transmission/releases"
|
|
distfiles="https://github.com/transmission/transmission/releases/download/${version}/${pkgname}-${version}.tar.xz"
|
|
checksum=2a38fe6d8a23991680b691c277a335f8875bdeca2b97c6b26b598bc9c7b0c45f
|
|
|
|
# Create transmission system user/group
|
|
system_accounts="transmission"
|
|
transmission_homedir="/var/lib/transmission"
|
|
make_dirs="/var/lib/transmission 0755 transmission transmission"
|
|
|
|
post_install() {
|
|
rm -f ${DESTDIR}/usr/share/${pkgname}/web/LICENSE
|
|
vsv transmission-daemon
|
|
vlicense COPYING
|
|
}
|
|
|
|
transmission-qt_package() {
|
|
depends="${sourcepkg}>=${version}_${revision} desktop-file-utils"
|
|
short_desc+=" - Qt frontend"
|
|
pkg_install() {
|
|
vmove usr/bin/transmission-qt
|
|
vmove usr/share/man/man1/transmission-qt.1
|
|
vmove usr/share/transmission/translations
|
|
sed -i '/Icon=/s/transmission/&-qt/' ${DESTDIR}/usr/share/applications/transmission-qt.desktop
|
|
vinstall ${wrksrc}/qt/icons/transmission.svg 644 usr/share/pixmaps transmission-qt.svg
|
|
vinstall ${wrksrc}/gtk/icons/hicolor_apps_scalable_transmission.svg \
|
|
644 usr/share/icons/hicolor/scalable/apps transmission-qt.svg
|
|
vmove usr/share/applications/transmission-qt.desktop
|
|
}
|
|
}
|
|
|
|
transmission-gtk_package() {
|
|
depends="${sourcepkg}>=${version}_${revision} hicolor-icon-theme desktop-file-utils"
|
|
short_desc+=" - GTK+ frontend"
|
|
pkg_install() {
|
|
vmove usr/bin/transmission-gtk
|
|
vmove usr/share/man/man1/transmission-gtk.1
|
|
vmove usr/share/icons/hicolor
|
|
vmove usr/share/applications/transmission-gtk.desktop
|
|
vinstall ${wrksrc}/qt/icons/transmission.svg 644 usr/share/pixmaps
|
|
# This install path seems to be used with musl libc
|
|
if [ -d ${DESTDIR}/usr/lib/locale ]; then
|
|
mv ${DESTDIR}/usr/lib/locale ${DESTDIR}/usr/share
|
|
fi
|
|
vmove usr/share/locale
|
|
}
|
|
}
|