summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimone Scalabrino2020-07-19 21:49:42 +0200
committerSimone Scalabrino2020-07-19 21:49:42 +0200
commit05489ad53e38a5ab433db9fbd6fd6b3ad8a2c8d0 (patch)
treeb883e007a71de73915ed88ffa9dd63b2dbf29c54
downloadaur-05489ad53e38a5ab433db9fbd6fd6b3ad8a2c8d0.tar.gz
Version 0.1
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD45
2 files changed, 60 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..ae6ca906988
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = silo-hey
+ pkgdesc = Standalone silo app for Hey.com
+ pkgver = 0.1
+ pkgrel = 1
+ url = https://github.com/intersimone999/silos-apps
+ arch = i686
+ arch = x86_64
+ license = GPLv3
+ makedepends = git
+ depends = silos
+ source = git+https://github.com/intersimone999/silos-apps.git
+ sha256sums = SKIP
+
+pkgname = silo-hey
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..16eb486fd76
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,45 @@
+PACKAGER='Simone Scalabrino <s.scalabrino9@gmail.com>'
+_appname="hey"
+_appdesc="Standalone silo app for Hey.com"
+_gittag="0.1"
+
+_gitname=silos-apps
+pkgname="silo-${_appname}"
+pkgver=$_gittag
+pkgrel=1
+pkgdesc="${_appdesc}"
+arch=('i686' 'x86_64')
+url="https://github.com/intersimone999/${_gitname}"
+license=('GPLv3')
+depends=('silos')
+makedepends=('git')
+source=("git+${url}.git")
+sha256sums=('SKIP')
+
+package() {
+ cd "${srcdir}/${_gitname}/${_appname}"
+
+ basefolder=$(python -c "import os;import pyqtws as _; print(os.path.dirname(_.__file__))")
+
+ iconsfolder=${basefolder}/icons
+ for f in ${srcdir}/${_gitname}/${_appname}/icons/*.svg
+ do
+ target=$(basename "$f")
+ install -Dm755 "$f" "${pkgdir}/usr/share/pixmaps/silo-$target"
+ install -Dm755 "$f" "${pkgdir}/${iconsfolder}/$target"
+ done
+
+ for f in ${srcdir}/${_gitname}/${_appname}/desktops/*.desktop
+ do
+ target=$(basename "$f")
+ install -Dm755 "$f" "${pkgdir}/usr/share/applications/silo-$target"
+ done
+
+ appsfolder=${basefolder}/apps
+ for f in ${srcdir}/${_gitname}/${_appname}/apps/*.qtws
+ do
+ target=$(basename "$f")
+ install -Dm755 "$f" "${pkgdir}/${appsfolder}/$target"
+ done
+}
+