summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorChristian Muehlhaeuser2019-04-27 09:49:45 +0200
committerChristian Muehlhaeuser2019-04-27 09:51:53 +0200
commit4d2147bb4914202199f4fb7edbc6ee83f79ce4d5 (patch)
tree001aa31abfe56513153b7cf6d8778e26ec8f4dff /PKGBUILD
downloadaur-4d2147bb4914202199f4fb7edbc6ee83f79ce4d5.tar.gz
Initial commit for package transmission-qt-git
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD56
1 files changed, 56 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..984c0f75a2b2
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,56 @@
+# Maintainer : Christian Muehlhaeuser <muesli@gmail.com>
+
+pkgname=(transmission-qt-git)
+pkgver=2.94
+pkgrel=1
+arch=(x86_64)
+url="http://www.transmissionbt.com/"
+license=(MIT)
+pkgdesc='Fast, easy, and free BitTorrent client (Qt GUI)'
+depends=(curl qt5-base libevent)
+optdepends=('transmission-cli: daemon and web support')
+makedepends=(gtk3 intltool curl qt5-base libevent systemd qt5-tools)
+source=(git+https://github.com/transmission/transmission.git
+ transmission-cli.sysusers
+ transmission-cli.tmpfiles)
+conflicts=('transmission-qt')
+provides=('transmission-qt')
+sha256sums=('SKIP'
+ 'SKIP'
+ 'SKIP')
+
+prepare() {
+ cd $srcdir/transmission
+ git submodule update --init
+
+ sed -i '/^Icon=/ s/$/-qt/' qt/transmission-qt.desktop
+}
+
+build() {
+ cd $srcdir/transmission
+
+ mkdir -p build
+ cd build
+
+ cmake ../ \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DLIB_INSTALL_DIR=lib \
+ -DKDE_INSTALL_USE_QT_SYS_PATHS=ON
+
+ cd qt
+ make
+}
+
+package() {
+ cd $srcdir/transmission/build/qt
+
+ make DESTDIR="$pkgdir/" install
+
+ cd ../..
+ 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"
+}