* update transmission to 4.0.6-9

This commit is contained in:
Alexander Baldeck 2025-02-17 17:09:06 +01:00
parent 80741951c6
commit bb2b72f6d2
2 changed files with 24 additions and 5 deletions

View File

@ -21,7 +21,6 @@ pkgbase = transmission
makedepends = libnatpmp
makedepends = miniupnpc
makedepends = ninja
makedepends = npm
makedepends = qt6-base
makedepends = qt6-svg
makedepends = qt6-tools
@ -34,6 +33,9 @@ pkgbase = transmission
sha256sums = 1e5917c79a0c17595f18b544c5c1ab101ecbef5b2ffb0ca42a0a3b221a85e044
sha256sums = 641310fb0590d40e00bea1b5b9c843953ab78edf019109f276be9c6a7bdaf5b2
sha256sums = 1266032bb07e47d6bcdc7dabd74df2557cc466c33bf983a5881316a4cc098451
makedepends_x86_64 = npm
makedepends_powerpc64le = npm
makedepends_powerpc64 = npm
pkgname = transmission-cli
pkgdesc = Fast, easy, and free BitTorrent client (CLI tools, daemon and web client)

View File

@ -52,6 +52,10 @@ build() {
export CFLAGS+=' -ffat-lto-objects'
cd "$_archive"
case "${CARCH}" in
powerpc64*) _cmake_options=(-D REBUILD_WEB=ON) ;;
esac
cmake \
-G Ninja \
-D CMAKE_BUILD_TYPE=RelWithDebInfo \
@ -61,7 +65,6 @@ build() {
-D ENABLE_GTK=ON \
-D ENABLE_MAC=OFF \
-D ENABLE_QT=ON \
-D REBUILD_WEB=ON \
-D ENABLE_TESTS=ON \
-D ENABLE_UTILS=ON \
-D ENABLE_UTP=ON \
@ -76,7 +79,7 @@ build() {
-D USE_SYSTEM_UTP=OFF \
-D WITH_CRYPTO=openssl \
-S . \
-B build
-B build ${_cmake_options[@]}
cmake --build build --config Release
}
@ -101,11 +104,25 @@ package_transmission-cli() {
miniupnpc
systemd)
cd "$_archive"
for dir in daemon cli web utils; do
case "${CARCH}" in
powerpc64*|x86_64)
_components=(daemon cli web utils)
;;
*)
_components=(daemon cli utils)
;;
esac
for dir in ${_components[@]}; do
_install_component $dir
done
install -d "$pkgdir"/usr/share/transmission
cp -a build/web/public_html/ "$pkgdir"/usr/share/transmission
case "${CARCH}" in
powerpc64*|x86_64)
cp -a build/web/public_html/ "$pkgdir"/usr/share/transmission
;;
esac
install -Dm644 daemon/transmission-daemon.service \
"$pkgdir/usr/lib/systemd/system/transmission.service"
install -Dm644 COPYING "$pkgdir/usr/share/licenses/transmission-cli/COPYING"