[arch-commits] Commit in transmission/trunk (PKGBUILD)
Antonio Rojas
arojas at gemini.archlinux.org
Thu Feb 10 22:34:31 UTC 2022
Date: Thursday, February 10, 2022 @ 22:34:31
Author: arojas
Revision: 436908
Unbundle dependencies (FS#69451), fix build with latest autotools (FS#70877), package static library (FS#72015)
Modified:
transmission/trunk/PKGBUILD
----------+
PKGBUILD | 29 ++++++++++++++++++++++-------
1 file changed, 22 insertions(+), 7 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-02-10 22:23:06 UTC (rev 436907)
+++ PKGBUILD 2022-02-10 22:34:31 UTC (rev 436908)
@@ -2,13 +2,13 @@
# Maintainer : Ionut Biru <ibiru at archlinux.org>
pkgbase=transmission
-pkgname=(transmission-cli transmission-gtk transmission-qt)
+pkgname=(transmission-cli transmission-gtk transmission-qt libtransmission)
pkgver=3.00
-pkgrel=2
+pkgrel=3
arch=(x86_64)
url="http://www.transmissionbt.com/"
license=(MIT)
-makedepends=(gtk3 intltool curl qt5-base libevent systemd qt5-tools libappindicator-gtk3)
+makedepends=(gtk3 intltool curl qt5-base libevent systemd qt5-tools libappindicator-gtk3 dht libb64 libutp miniupnpc libnatpmp)
source=(https://github.com/transmission/transmission-releases/raw/master/transmission-${pkgver}.tar.xz
transmission-cli.sysusers
transmission-cli.tmpfiles)
@@ -19,6 +19,8 @@
prepare() {
cd $pkgbase-$pkgver
+# Fix build with autoconf 2.70
+ sed -i 's/\[IT_PROG_INTLTOOL(\[/[\nIT_PROG_INTLTOOL(\[/' configure.ac
rm -f m4/glib-gettext.m4
autoreconf -fi
@@ -26,8 +28,12 @@
}
build() {
+ export CFLAGS+=" -ffat-lto-objects"
cd $pkgbase-$pkgver
- ./configure --prefix=/usr
+ ./configure --prefix=/usr \
+ --enable-external-dht \
+ --enable-external-b64 \
+ --enable-external-natpmp
make
cd qt
@@ -39,7 +45,7 @@
package_transmission-cli() {
pkgdesc='Fast, easy, and free BitTorrent client (CLI tools, daemon and web client)'
- depends=(curl libevent systemd)
+ depends=(curl libevent systemd libb64 miniupnpc libnatpmp)
cd $pkgbase-$pkgver
@@ -59,7 +65,7 @@
package_transmission-gtk() {
pkgdesc='Fast, easy, and free BitTorrent client (GTK+ GUI)'
- depends=(curl libevent gtk3 desktop-file-utils hicolor-icon-theme libappindicator-gtk3)
+ depends=(curl libevent gtk3 hicolor-icon-theme libappindicator-gtk3 libb64 miniupnpc libnatpmp)
optdepends=('libnotify: Desktop notification support'
'transmission-cli: daemon and web support')
@@ -72,7 +78,7 @@
package_transmission-qt() {
pkgdesc='Fast, easy, and free BitTorrent client (Qt GUI)'
- depends=(curl qt5-base libevent)
+ depends=(curl qt5-base libevent libb64 miniupnpc libnatpmp)
optdepends=('transmission-cli: daemon and web support')
cd $pkgbase-$pkgver
@@ -87,3 +93,12 @@
install -Dm644 qt/transmission-qt.desktop \
"$pkgdir/usr/share/applications/transmission-qt.desktop"
}
+
+package_libtransmission() {
+ pkgdesc='Fast, easy, and free BitTorrent client (shared library)'
+
+ cd $pkgbase-$pkgver
+ install -Dm644 libtransmission/libtransmission.a -t "$pkgdir"/usr/lib
+ install -Dm644 libtransmission/*.h -t "$pkgdir"/usr/include/transmission
+ install -Dm644 COPYING "$pkgdir/usr/share/licenses/libtransmission/COPYING"
+}
More information about the arch-commits
mailing list