summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorDimitris Kiziridis2020-11-29 00:31:10 +0200
committerDimitris Kiziridis2020-11-29 00:31:10 +0200
commit2da60cb5f27a0d588ff5114d11fe50875af3fb7c (patch)
treef16feba5aeee6ed2087682c8267b82bd925fae92 /PKGBUILD
downloadaur-2da60cb5f27a0d588ff5114d11fe50875af3fb7c.tar.gz
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD32
1 files changed, 32 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..425a30971b3
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,32 @@
+# Maintainer: Dimitris Kiziridis <ragouel at outlook dot com>
+
+pkgname=electorrent
+pkgver=2.7.1
+pkgrel=1
+pkgdesc="A remote control client for ĀµTorrent, qBittorrent, rTorrent, Transmission, Synology & Deluge"
+arch=('x86_64')
+url='https://github.com/Tympanix/Electorrent'
+license=('GPL3')
+makedepends=('gendesk')
+noextract=("${pkgname}-${pkgver}.AppImage")
+source=("${pkgname}-${pkgver}.AppImage::https://github.com/tympanix/Electorrent/releases/download/v${pkgver}/Electorrent-${pkgver}.AppImage")
+sha256sums=('3197b0373667dee043b7a649dbb9a41884fd0726c49d6bfa303a50273d9309db')
+
+package() {
+ chmod 755 ./${pkgname}-${pkgver}.AppImage
+ ./${pkgname}-${pkgver}.AppImage --appimage-extract
+ install -Dm644 squashfs-root/usr/share/icons/hicolor/512x512/apps/electorrent.png "${pkgdir}/usr/share/pixmaps/electorrent.png"
+ gendesk -f -n --pkgname "${pkgname}" \
+ --pkgdesc "$pkgdesc" \
+ --name "Electorrent" \
+ --comment "$pkgdesc" \
+ --exec "${pkgname}" \
+ --categories 'Utility;Network;Application' \
+ --icon "${pkgname}"
+ install -Dm644 "${pkgname}.desktop" -t "${pkgdir}/usr/share/applications"
+ install -d "${pkgdir}/usr/bin"
+ install -d "${pkgdir}/opt"
+ cp -avR squashfs-root/ "${pkgdir}/opt/${pkgname}"
+ ln -s /opt/${pkgname}/AppRun "${pkgdir}/usr/bin/electorrent"
+ find "${pkgdir}/opt/${pkgname}" -type d -exec chmod 755 {} +
+}