2012-04-11 07:25:25 +08:00
|
|
|
# maintainer abveritas@chakra-project.org
|
2010-12-05 20:09:06 +08:00
|
|
|
# contributor : Stephen McIntosh <stephenmac7@gmail.com>
|
2014-05-27 15:54:38 +08:00
|
|
|
# Maintainer: Bruce Liu <bril@users.sourceforge.net>
|
2010-12-05 20:09:06 +08:00
|
|
|
|
|
|
|
pkgbase=transmission
|
2014-06-16 15:07:02 +08:00
|
|
|
pkgname=('transmission-cli' 'transmission-qt' 'transmission-qt5')
|
2014-08-06 15:20:32 +08:00
|
|
|
pkgver=2.84
|
|
|
|
pkgrel=1
|
2012-12-14 00:21:00 +08:00
|
|
|
arch=('x86_64')
|
2010-12-05 20:09:06 +08:00
|
|
|
url="http://www.transmissionbt.com/"
|
|
|
|
license=('MIT')
|
2013-12-27 19:21:45 +08:00
|
|
|
makedepends=('intltool' 'curl' 'pkgconfig' 'desktop-file-utils' 'qt' 'libevent' 'gettext' 'qt5-base' 'miniupnpc')
|
2012-07-25 05:25:24 +08:00
|
|
|
source=("http://mirrors.m0k.org/transmission/files/${pkgbase}-${pkgver}.tar.xz"
|
2014-05-27 15:54:38 +08:00
|
|
|
'transmission.tmpfiles')
|
2014-08-06 15:20:32 +08:00
|
|
|
md5sums=('411aec1c418c14f6765710d89743ae42'
|
2014-05-27 15:54:38 +08:00
|
|
|
'23f2320361ad54373c3a4551ef634fe8')
|
2013-12-29 00:32:04 +08:00
|
|
|
|
2010-12-05 20:09:06 +08:00
|
|
|
build() {
|
2014-05-27 15:54:38 +08:00
|
|
|
msg 'Configure source code...'
|
2010-12-05 20:09:06 +08:00
|
|
|
cd "${srcdir}/${pkgbase}-${pkgver}"
|
2013-12-27 19:21:45 +08:00
|
|
|
autoreconf -fi
|
2010-12-05 20:09:06 +08:00
|
|
|
export CFLAGS="$CFLAGS -fno-strict-aliasing"
|
|
|
|
|
2013-12-27 19:21:45 +08:00
|
|
|
./configure --prefix=/usr \
|
2013-12-29 00:32:04 +08:00
|
|
|
--enable-nls \
|
|
|
|
--enable-static=no \
|
|
|
|
--localedir=/usr/share/transmission/i18n
|
2010-12-05 20:09:06 +08:00
|
|
|
make
|
2014-06-16 15:07:02 +08:00
|
|
|
cp -r qt qt5
|
|
|
|
msg 'Compiling Qt4 part...'
|
2014-06-16 15:20:10 +08:00
|
|
|
sed -i '/^CONFIG/aQMAKE_CXXFLAGS += -std=c++11' qt/qtr.pro
|
2013-12-27 19:21:45 +08:00
|
|
|
cd "${srcdir}/${pkgbase}-${pkgver}/qt"
|
2014-06-16 15:07:02 +08:00
|
|
|
qmake qtr.pro
|
|
|
|
make
|
|
|
|
msg 'Compiling Qt5 part...'
|
|
|
|
cd "${srcdir}/${pkgbase}-${pkgver}/qt5"
|
2013-12-27 19:21:45 +08:00
|
|
|
/usr/lib/qt5/bin/qmake qtr.pro
|
|
|
|
make
|
2010-12-05 20:09:06 +08:00
|
|
|
}
|
2011-07-01 03:37:43 +08:00
|
|
|
|
|
|
|
package_transmission-cli() {
|
|
|
|
pkgdesc="Fast, easy, and free BitTorrent client (CLI tools, daemon and web client)"
|
2014-01-08 03:35:23 +08:00
|
|
|
depends=('curl' 'libevent' 'miniupnpc')
|
2012-03-16 22:51:37 +08:00
|
|
|
categories=('network')
|
2011-07-01 03:37:43 +08:00
|
|
|
backup=('etc/conf.d/transmissiond')
|
2013-12-27 19:21:45 +08:00
|
|
|
install=transmission-cli.install
|
|
|
|
|
2011-07-01 03:37:43 +08:00
|
|
|
cd "${srcdir}/${pkgbase}-${pkgver}"
|
|
|
|
|
|
|
|
for dir in daemon cli web utils
|
|
|
|
do
|
|
|
|
make -C "${dir}" DESTDIR="${pkgdir}" install
|
|
|
|
done
|
|
|
|
|
2013-12-29 00:32:04 +08:00
|
|
|
install -D -m644 "daemon/transmission-daemon.service" "$pkgdir/usr/lib/systemd/system/transmission.service"
|
2012-10-22 03:30:28 +08:00
|
|
|
install -D -m644 "$srcdir/transmission.tmpfiles" "$pkgdir/usr/lib/tmpfiles.d/transmission.conf"
|
2011-07-01 03:37:43 +08:00
|
|
|
install -D -m644 COPYING "${pkgdir}/usr/share/licenses/transmission-cli/COPYING"
|
|
|
|
}
|
|
|
|
|
2014-06-16 15:07:02 +08:00
|
|
|
package_transmission-qt() {
|
|
|
|
pkgdesc="Fast, easy, and free BitTorrent client (Qt GUI)"
|
|
|
|
depends=('curl' 'qt' 'libevent' 'miniupnpc')
|
|
|
|
optdepends=('transmission-cli: daemon and web support')
|
|
|
|
categories=('network')
|
|
|
|
screenshot=('http://www.transmissionbt.com/images/screenshots/Qt-Large.jpg')
|
|
|
|
install=transmission.install
|
|
|
|
|
|
|
|
cd "${srcdir}/${pkgbase}-${pkgver}"
|
2010-12-05 20:09:06 +08:00
|
|
|
|
2014-06-16 15:07:02 +08:00
|
|
|
make -C qt INSTALL_ROOT="${pkgdir}"/usr install
|
2010-12-05 20:09:06 +08:00
|
|
|
|
2014-06-16 15:07:02 +08:00
|
|
|
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 -dm755 ${pkgdir}/usr/share/icons/hicolor
|
|
|
|
cp -r qt/icons/hicolor/* ${pkgdir}/usr/share/icons/hicolor/
|
|
|
|
}
|
2013-12-27 19:21:45 +08:00
|
|
|
|
2014-06-16 15:07:02 +08:00
|
|
|
package_transmission-qt5() {
|
2013-12-27 19:21:45 +08:00
|
|
|
pkgdesc="Fast, easy, and free BitTorrent client (Qt5 GUI)"
|
|
|
|
depends=('curl' 'qt5-base' 'libevent' 'miniupnpc')
|
|
|
|
optdepends=('transmission-cli: daemon and web support')
|
|
|
|
categories=('network')
|
2014-05-27 15:54:38 +08:00
|
|
|
provides=("${pkgbase}" 'transmission-qt')
|
|
|
|
conflicts=("${pkgbase}" 'transmission-qt')
|
2014-06-16 23:11:37 +08:00
|
|
|
replaces=("${pkgbase}")
|
2013-12-27 19:21:45 +08:00
|
|
|
screenshot=('http://www.transmissionbt.com/images/screenshots/Qt-Large.jpg')
|
2014-05-27 15:54:38 +08:00
|
|
|
install=transmission.install
|
2013-12-27 19:21:45 +08:00
|
|
|
|
|
|
|
cd "${srcdir}/${pkgbase}-${pkgver}"
|
|
|
|
|
2014-06-16 15:20:10 +08:00
|
|
|
make -C qt5 INSTALL_ROOT="${pkgdir}"/usr install
|
2013-12-27 19:21:45 +08:00
|
|
|
|
|
|
|
install -D -m644 COPYING "${pkgdir}/usr/share/licenses/transmission-qt/COPYING"
|
2014-05-27 15:54:38 +08:00
|
|
|
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"
|
2013-12-27 19:21:45 +08:00
|
|
|
|
|
|
|
install -dm755 ${pkgdir}/usr/share/icons/hicolor
|
|
|
|
cp -r qt/icons/hicolor/* ${pkgdir}/usr/share/icons/hicolor/
|
2012-10-22 03:30:28 +08:00
|
|
|
}
|