diff options
Diffstat (limited to 'user/transmission/APKBUILD')
-rw-r--r-- | user/transmission/APKBUILD | 57 |
1 files changed, 26 insertions, 31 deletions
diff --git a/user/transmission/APKBUILD b/user/transmission/APKBUILD index 9f2a97963..a5ac0589b 100644 --- a/user/transmission/APKBUILD +++ b/user/transmission/APKBUILD @@ -1,59 +1,53 @@ # Contributor: Carlo Landmeter <clandmeter@gmail.com> # Maintainer: Dan Theisen <djt@hxx.in> pkgname=transmission -pkgver=2.94 +pkgver=3.00 pkgrel=0 pkgdesc="Lightweight GTK BitTorrent client" url="https://transmissionbt.com/" arch="all" license="GPL-2.0+ AND MIT" -depends="" +depends="" makedepends="bsd-compat-headers curl-dev dbus-glib-dev gtk+3.0-dev intltool - libevent-dev libnotify-dev openssl-dev qt5-qtbase-dev" + libevent-dev libnotify-dev openssl-dev qt5-qtbase-dev glib-dev + miniupnpc-dev libnatpmp-dev wayland-protocols qdbus qt5-qttools-dev" install="transmission.post-install transmission-daemon.pre-install transmission-daemon.post-upgrade" pkgusers="transmission" pkggroups="transmission" source="https://github.com/transmission/$pkgname-releases/raw/master/$pkgname-$pkgver.tar.xz transmission-daemon.initd transmission-daemon.confd + fix-release-tarball.patch " subpackages="$pkgname-qt $pkgname-gtk $pkgname-cli $pkgname-daemon $pkgname-doc $pkgname-lang" build() { - ./configure \ - --build=$CBUILD \ - --host=$CHOST \ - --prefix=/usr \ - --sysconfdir=/etc \ - --mandir=/usr/share/man \ - --infodir=/usr/share/info \ - --localstatedir=/var \ - --enable-utp \ - --with-inotify \ - --enable-cli + mkdir build && cd build + cmake \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DBUILD_SHARED_LIBS=True \ + -DCMAKE_BUILD_TYPE=RelWithDebugInfo \ + -DCMAKE_CXX_FLAGS="$CXXFLAGS" \ + -DCMAKE_C_FLAGS="$CFLAGS" \ + ${CMAKE_CROSSOPTS} \ + -DWITH_LIBAPPINDICATOR=NO \ + -DENABLE_QT=ON \ + -DENABLE_GTK=ON \ + -DENABLE_CLI=ON \ + -DINSTALL_LIB=ON \ + .. make - - # build for Qt - cd qt - qmake qtr.pro - make - } check() { - msg "Checking for Transmission Core and GTK" - make check - - # check for Qt - this historically has no tests - msg "Checking for Transmission Qt" - make -C qt check + cd build + CTEST_OUTPUT_ON_FAILURE=TRUE ctest } package() { + cd build make DESTDIR="$pkgdir" install - - # install for Qt - make INSTALL_ROOT="$pkgdir/usr" -C qt install } qt() { @@ -102,6 +96,7 @@ cli() { "$subpkgdir"/usr/bin/ } -sha512sums="ee411743940f2897aa0bbc351ce79f11d860075d2e9e399d60301eae8cfc453e20426ef553fc62ee43019a07c052d512f5d7972cc4411fb57b1312c2c1558da7 transmission-2.94.tar.xz +sha512sums="eeaf7fe46797326190008776a7fa641b6341c806b0f1684c2e7326c1284832a320440013e42a37acda9fd0ee5dca695f215d6263c8acb39188c5d9a836104a61 transmission-3.00.tar.xz d31275fba7eb322510f9667e66a186d626889a6e3143be2923aae87b9c35c5cf0c508639f1cb8c1b88b1e465bc082d80bb1101385ebde736a34d4eeeae0f6e15 transmission-daemon.initd -a3b9ac2b7bbe30e33060c8b6a693dc7072d3c6ac44f92ddd567969d8f57a0bfc1a561e781ae167703ccb4b2fd5b0e6d8f8a66c5ba14fe01d8d89a501d4501474 transmission-daemon.confd" +a3b9ac2b7bbe30e33060c8b6a693dc7072d3c6ac44f92ddd567969d8f57a0bfc1a561e781ae167703ccb4b2fd5b0e6d8f8a66c5ba14fe01d8d89a501d4501474 transmission-daemon.confd +4d6a9fa4dc49ff785847c20097e1968373b4636da7c70e17912aadff31ff182a8fb31a81e278531296040cf2de6077c6a446a54146c9a92571f6a9d9b4aed661 fix-release-tarball.patch" |