summaryrefslogtreecommitdiffstats
path: root/abs/extra/transmission/PKGBUILD
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2017-07-15 22:59:13 (GMT)
committerBritney Fransen <brfransen@gmail.com>2017-07-15 22:59:13 (GMT)
commit80085a7177f1ced3e90fe0c62e49adbfe4023acb (patch)
tree922f6614bb6e37944fd5cb61dd385eebd59c7575 /abs/extra/transmission/PKGBUILD
parent3762270f8ab93f90b7c65dfc5b9b3e15a4cbf295 (diff)
downloadlinhes_pkgbuild-80085a7177f1ced3e90fe0c62e49adbfe4023acb.zip
linhes_pkgbuild-80085a7177f1ced3e90fe0c62e49adbfe4023acb.tar.gz
linhes_pkgbuild-80085a7177f1ced3e90fe0c62e49adbfe4023acb.tar.bz2
transmission: update to 2.92
Diffstat (limited to 'abs/extra/transmission/PKGBUILD')
-rw-r--r--abs/extra/transmission/PKGBUILD102
1 files changed, 60 insertions, 42 deletions
diff --git a/abs/extra/transmission/PKGBUILD b/abs/extra/transmission/PKGBUILD
index 77d3403..cec5033 100644
--- a/abs/extra/transmission/PKGBUILD
+++ b/abs/extra/transmission/PKGBUILD
@@ -1,78 +1,96 @@
-# $Id: PKGBUILD 170069 2012-10-31 13:47:37Z ibiru $
+# $Id$
+# Maintainer : Tom Gundersen <teg@jklm.no>
# Maintainer : Ionut Biru <ibiru@archlinux.org>
pkgbase=transmission
-pkgname=('transmission-cli' 'transmission-gtk' 'transmission-qt')
-pkgver=2.73
-pkgrel=2
-arch=('i686' 'x86_64')
+pkgname=(transmission-cli transmission-gtk transmission-qt)
+pkgver=2.92
+pkgrel=7
+arch=(i686 x86_64)
url="http://www.transmissionbt.com/"
-license=('MIT')
-makedepends=('gtk3' 'intltool' 'curl' 'qt' 'libevent')
-source=(http://mirrors.m0k.org/transmission/files/$pkgbase-$pkgver.tar.xz
- transmissiond transmissiond.conf transmission.systemd
- transmission.tmpfiles)
+license=(MIT)
+makedepends=(gtk3 intltool curl qt5-base libevent systemd qt5-tools)
+source=(https://github.com/transmission/transmission-releases/raw/master/transmission-${pkgver}.tar.xz
+ transmission-2.90-libsystemd.patch
+ transmission-2.92-openssl-1.1.0.patch
+ transmission-cli.sysusers
+ transmission-cli.tmpfiles)
+sha256sums=('3a8d045c306ad9acb7bf81126939b9594553a388482efa0ec1bfb67b22acd35f'
+ '9f8f4bb532e0e46776dbd90e75557364f495ec95896ee35900ea222d69bda411'
+ 'efd41985f60c977a95744ee44dfbb628424765caee83c6af3e29a5b1cbfadc98'
+ '641310fb0590d40e00bea1b5b9c843953ab78edf019109f276be9c6a7bdaf5b2'
+ '1266032bb07e47d6bcdc7dabd74df2557cc466c33bf983a5881316a4cc098451')
-build() {
+prepare() {
cd $pkgbase-$pkgver
+ patch -p1 -i "$srcdir/transmission-2.90-libsystemd.patch"
+ patch -p1 -i "$srcdir/transmission-2.92-openssl-1.1.0.patch"
+
+ rm -f m4/glib-gettext.m4
+ autoreconf -fi
+ sed -i '/^Icon=/ s/$/-qt/' qt/transmission-qt.desktop
+}
+
+build() {
+ cd $pkgbase-$pkgver
./configure --prefix=/usr
make
- pushd qt
- qmake qtr.pro
+
+ cd qt
+ qmake qtr.pro \
+ DEFINES+=TRANSLATIONS_DIR=\\\\\\\"/usr/share/transmission-qt/translations\\\\\\\"
make
+ lrelease translations/*.ts
}
+
package_transmission-cli() {
- pkgdesc="Fast, easy, and free BitTorrent client (CLI tools, daemon and web client)"
- depends=('curl' 'libevent')
- backup=('etc/conf.d/transmissiond')
- install=transmission-cli.install
+ pkgdesc='Fast, easy, and free BitTorrent client (CLI tools, daemon and web client)'
+ depends=(curl libevent systemd)
cd $pkgbase-$pkgver
- for dir in daemon cli web utils
- do
- make -C "$dir" DESTDIR="$pkgdir" install
+ for dir in daemon cli web utils; do
+ make -C "$dir" DESTDIR="$pkgdir" install
done
- install -D -m755 "$srcdir/transmissiond" "$pkgdir/etc/rc.d/transmissiond"
- install -D -m644 "$srcdir/transmissiond.conf" "$pkgdir/etc/conf.d/transmissiond"
- install -D -m644 "$srcdir/transmission.tmpfiles" "$pkgdir/usr/lib/tmpfiles.d/transmission.conf"
- install -D -m644 "$srcdir/transmission.systemd" "$pkgdir/usr/lib/systemd/system/transmission.service"
- ln -s transmission.service "$pkgdir/usr/lib/systemd/system/transmissiond.service"
- install -D -m644 COPYING "$pkgdir/usr/share/licenses/transmission-cli/COPYING"
+ install -Dm644 daemon/transmission-daemon.service \
+ "$pkgdir/usr/lib/systemd/system/transmission.service"
+ install -Dm644 COPYING "$pkgdir/usr/share/licenses/transmission-cli/COPYING"
+
+ install -Dm644 "$srcdir/$pkgname.sysusers" \
+ "$pkgdir/usr/lib/sysusers.d/transmission.conf"
+ install -Dm644 "$srcdir/$pkgname.tmpfiles" \
+ "$pkgdir/usr/lib/tmpfiles.d/transmission.conf"
}
package_transmission-gtk() {
- pkgdesc="Fast, easy, and free BitTorrent client (GTK+ GUI)"
- depends=('curl' 'libevent' 'gtk3' 'desktop-file-utils' 'hicolor-icon-theme')
+ pkgdesc='Fast, easy, and free BitTorrent client (GTK+ GUI)'
+ depends=(curl libevent gtk3 desktop-file-utils hicolor-icon-theme)
optdepends=('notification-daemon: Desktop notification support'
- 'transmission-cli: daemon and web support')
- install=transmission-gtk.install
+ 'transmission-cli: daemon and web support')
cd $pkgbase-$pkgver
make -C gtk DESTDIR="$pkgdir" install
make -C po DESTDIR="$pkgdir" install
- install -D -m644 COPYING "$pkgdir/usr/share/licenses/transmission-gtk/COPYING"
+ install -Dm644 COPYING "$pkgdir/usr/share/licenses/transmission-gtk/COPYING"
}
package_transmission-qt() {
- pkgdesc="Fast, easy, and free BitTorrent client (Qt GUI)"
- depends=('curl' 'qt' 'libevent')
+ pkgdesc='Fast, easy, and free BitTorrent client (Qt GUI)'
+ depends=(curl qt5-base libevent)
optdepends=('transmission-cli: daemon and web support')
- install=transmission-qt.install
cd $pkgbase-$pkgver
make -C qt INSTALL_ROOT="$pkgdir"/usr install
+ install -Dm644 -t "$pkgdir/usr/share/transmission-qt/translations" \
+ qt/translations/*.qm
- install -D -m644 COPYING "$pkgdir/usr/share/licenses/transmission-qt/COPYING"
- install -D -m644 qt/icons/transmission.png "$pkgdir/usr/share/pixmaps/transmission-qt.png"
- install -D -m644 qt/transmission-qt.desktop "$pkgdir/usr/share/applications/transmission-qt.desktop"
+ install -Dm644 COPYING "$pkgdir/usr/share/licenses/transmission-qt/COPYING"
+ install -Dm644 qt/icons/transmission.png \
+ "$pkgdir/usr/share/pixmaps/transmission-qt.png"
+ install -Dm644 qt/transmission-qt.desktop \
+ "$pkgdir/usr/share/applications/transmission-qt.desktop"
}
-md5sums=('fae00b13a7b18f9dc16edef020edea85'
- '7d6186ee2a852ae3d44980f05063e194'
- 'db72b02fee139e8ab416324e6c044d76'
- '5c289c8901221a94be74665368ab5c2c'
- '23f2320361ad54373c3a4551ef634fe8')