summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitris Kiziridis2020-12-01 00:56:42 +0200
committerDimitris Kiziridis2020-12-01 00:56:42 +0200
commite4559c215c33cdeb1e88bca5a2ae011328b237a6 (patch)
tree025a620d1616b175f51af0954fc9af8cf3ff6650
parent2da60cb5f27a0d588ff5114d11fe50875af3fb7c (diff)
downloadaur-e4559c215c33cdeb1e88bca5a2ae011328b237a6.tar.gz
fix pkgbuild
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD35
2 files changed, 34 insertions, 15 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 2041333be8a..9b47674f578 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,14 +1,20 @@
pkgbase = electorrent
pkgdesc = A remote control client for ĀµTorrent, qBittorrent, rTorrent, Transmission, Synology & Deluge
pkgver = 2.7.1
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/Tympanix/Electorrent
arch = x86_64
license = GPL3
makedepends = gendesk
- noextract = electorrent-2.7.1.AppImage
- source = electorrent-2.7.1.AppImage::https://github.com/tympanix/Electorrent/releases/download/v2.7.1/Electorrent-2.7.1.AppImage
- sha256sums = 3197b0373667dee043b7a649dbb9a41884fd0726c49d6bfa303a50273d9309db
+ makedepends = npm
+ makedepends = libicns
+ makedepends = graphicsmagick
+ makedepends = gulp
+ depends = gtk3
+ depends = nss
+ depends = libxss
+ source = electorrent-2.7.1.tar.gz::https://github.com/tympanix/Electorrent/archive/v2.7.1.tar.gz
+ sha256sums = 2c9479332264eafa71c0372088462e27bd23f5bbd0e55be6eccb1d69e2757c41
pkgname = electorrent
diff --git a/PKGBUILD b/PKGBUILD
index 425a30971b3..14d22f12102 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,20 +2,29 @@
pkgname=electorrent
pkgver=2.7.1
-pkgrel=1
+pkgrel=2
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')
+depends=('gtk3'
+ 'nss'
+ 'libxss')
+makedepends=('gendesk' 'npm' 'libicns' 'graphicsmagick' 'gulp')
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/tympanix/Electorrent/archive/v${pkgver}.tar.gz")
+sha256sums=('2c9479332264eafa71c0372088462e27bd23f5bbd0e55be6eccb1d69e2757c41')
+
+build() {
+ cd "Electorrent-${pkgver}"
+ rm -rf "${srcdir}/npm-cache"
+ mkdir ${srcdir}/npm-cache
+ npm install --cache "${srcdir}/npm-cache"
+ npm run dist
+}
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"
+ cd "Electorrent-${pkgver}"
+ install -Dm644 build/png/512x512.png "${pkgdir}/usr/share/pixmaps/electorrent.png"
gendesk -f -n --pkgname "${pkgname}" \
--pkgdesc "$pkgdesc" \
--name "Electorrent" \
@@ -26,7 +35,11 @@ package() {
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 {} +
+ cp -avR dist/linux-unpacked "${pkgdir}/opt/${pkgname}"
+ ln -s /opt/${pkgname}/electorrent "${pkgdir}/usr/bin/electorrent"
+ for i in 16 32 64 128 256 512; do
+ install -Dm644 build/png/${i}x${i}.png \
+ "${pkgdir}/usr/share/icons/hicolor/${i}x${i}/apps/electorrent.png"
+ done
+ # find "${pkgdir}/opt/${pkgname}" -type d -exec chmod 755 {} +
}