summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD27
2 files changed, 41 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 0000000..97a13f5
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,14 @@
+pkgbase = smartie-pwa
+ pkgver = 0.1
+ pkgrel = 1
+ url = https://cgit.ctu.cx/smartie-pwa/
+ arch = x86_64
+ license = GPL-3
+ makedepends = yarn
+ makedepends = git
+ depends = glibc
+ source = smartie-pwa-8eb18cf941fb850b36c7dc586907837bee2fccc9.tar.gz::https://cgit.ctu.cx/smartie-pwa/snapshot/smartie-pwa-8eb18cf941fb850b36c7dc586907837bee2fccc9.tar.gz
+ sha256sums = cf4b091199f0b420baa86563af1112890cf15fc807d6e57cd23c1893612456d6
+
+pkgname = smartie-pwa
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 0000000..94a3bbd
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,27 @@
+pkgname=smartie-pwa
+pkgver=0.1
+pkgrel=1
+arch=('x86_64')
+url="https://cgit.ctu.cx/${pkgname}/"
+license=( 'GPL-3' )
+depends=( 'glibc' )
+makedepends=( 'yarn' 'git' )
+_commit="8eb18cf941fb850b36c7dc586907837bee2fccc9"
+source=("${pkgname}-${_commit}.tar.gz::https://cgit.ctu.cx/${pkgname}/snapshot/${pkgname}-${_commit}.tar.gz")
+sha256sums=('cf4b091199f0b420baa86563af1112890cf15fc807d6e57cd23c1893612456d6')
+
+build() {
+ cd "$srcdir/${pkgname}-${_commit}/"
+ yarn install
+ ./node_modules/rollup/dist/bin/rollup -c
+}
+
+package() {
+ cd "$srcdir/${pkgname}-${_commit}"
+ install -dm755 "$pkgdir"/usr/share/webapps/smartie-pwa/
+ install -Dm755 ./index.html "$pkgdir"/usr/share/webapps/smartie-pwa/
+ install -Dm755 ./main.min.js "$pkgdir"/usr/share/webapps/smartie-pwa/
+ install -Dm755 ./sw.js "$pkgdir"/usr/share/webapps/smartie-pwa/
+ install -Dm755 ./manifest.json "$pkgdir"/usr/share/webapps/smartie-pwa/
+ install -Dm755 ./favicon-512x512.png "$pkgdir"/usr/share/webapps/smartie-pwa/
+}