summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authornikp1232017-08-11 19:59:54 +0000
committernikp1232017-08-11 19:59:54 +0000
commit288c383b3943624dc682e6f6f702d5651af855fa (patch)
treedb55be71f64f08cf99a4e0aba142802f99acdfdf
downloadaur-288c383b3943624dc682e6f6f702d5651af855fa.tar.gz
First version
-rw-r--r--.SRCINFO24
-rwxr-xr-xPKGBUILD39
2 files changed, 63 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..2982de6545b
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,24 @@
+pkgbase = devrantron
+ pkgdesc = DevRant client written in NodeJS
+ pkgver = latest
+ pkgrel = 1
+ url = https://github.com/tahnik/devrantron
+ arch = x86_64
+ license = Apache 2.0
+ makedepends = wget
+ makedepends = jq
+ makedepends = binutils
+ makedepends = tar
+ makedepends = xz
+ depends = gconf
+ depends = libnotify
+ depends = libappindicator-gtk3
+ depends = libxtst
+ depends = nss
+ depends = libxss
+ provides = devrantron
+ source = https://api.github.com/repos/tahnik/devrantron/releases/latest
+ sha1sums = SKIP
+
+pkgname = devrantron
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100755
index 00000000000..2c8cfdc69ab
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,39 @@
+pkgname=devrantron
+_pkgname=devrantron
+pkgver=latest
+pkgrel=1
+pkgdesc='DevRant client written in NodeJS'
+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')
+
+build() {
+ if [ ! -f package.deb ]
+ then
+ wget $(cat latest | jq --raw-output '.assets[4] | .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
+}
+
+