blob: 1616c5ca56e729db544e74922f0f988ffe14cdb0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
pkgname=devrantron
_pkgname=devrantron
pkgver=1.5.4
pkgrel=1
pkgdesc='DevRant client written in ReactJS'
arch=('x86_64')
url='https://github.com/tahnik/devrantron'
license=('Apache 2.0')
depends=('gconf' 'libnotify' 'libappindicator-gtk3' 'libxtst' 'nss' 'libxss')
makedepends=('wget' 'jq' 'binutils' 'tar' 'xz')
source=('https://api.github.com/repos/tahnik/devrantron/releases/latest')
provides=($_pkgname)
sha1sums=('SKIP')
pkgver() {
cat latest|jq --raw-output '.tag_name'|sed 's/v//g'
}
build() {
if [ ! -f package.deb ]
then
wget $(cat latest | jq --raw-output '.assets[7] | .browser_download_url') -O package.deb
fi
ar x package.deb
tar xf data.tar.xz
}
package() {
mkdir -p ${pkgdir}/opt/devRantron
cp -rf opt/devRantron ${pkgdir}/opt/
install -m 755 -d opt/devRantron ${pkgdir}/opt/
install -Dm644 usr/share/applications/devrantron.desktop ${pkgdir}/usr/share/applications/devrantron.desktop
install -Dm644 usr/share/doc/devrantron/changelog.gz ${pkgdir}/usr/share/doc/devrantron/changelog.gz
install -Dm644 usr/share/icons/hicolor/128x128/apps/devrantron.png ${pkgdir}/usr/share/icons/hicolor/128x128/apps/devrantron.png
install -Dm644 usr/share/icons/hicolor/16x16/apps/devrantron.png ${pkgdir}/usr/share/icons/hicolor/16x16/apps/devrantron.png
install -Dm644 usr/share/icons/hicolor/256x256/apps/devrantron.png ${pkgdir}/usr/share/icons/hicolor/256x256/apps/devrantron.png
install -Dm644 usr/share/icons/hicolor/32x32/apps/devrantron.png ${pkgdir}/usr/share/icons/hicolor/32x32/apps/devrantron.png
install -Dm644 usr/share/icons/hicolor/48x48/apps/devrantron.png ${pkgdir}/usr/share/icons/hicolor/48x48/apps/devrantron.png
install -Dm644 usr/share/icons/hicolor/512x512/apps/devrantron.png ${pkgdir}/usr/share/icons/hicolor/512x512/apps/devrantron.png
install -Dm644 usr/share/icons/hicolor/64x64/apps/devrantron.png ${pkgdir}/usr/share/icons/hicolor/64x64/apps/devrantron.png
}
|