summaryrefslogblamecommitdiffstats
path: root/PKGBUILD
blob: 2e8baf71562550fd0eaac90040b36f1429a20e7e (plain) (tree)
1
2
3
4
5
6
7
8
9

                   
        




                                     
                                                  
                                                                                                             
                                                                               















                                                                                
pkgname=smartie-pwa
pkgver=0.1
pkgrel=4
arch=('x86_64')
url="https://cgit.ctu.cx/${pkgname}/"
license=( 'GPL-3' )
depends=( 'glibc' )
makedepends=( 'yarn' 'git' )
_commit="a5e5a70c09f75cd8e0842ef969b6c31b40450576"
source=("${pkgname}-${_commit}.tar.gz::https://cgit.ctu.cx/${pkgname}/snapshot/${pkgname}-${_commit}.tar.gz")
sha256sums=('61aebf90f5b766cdbc712df22d5b44717af5a3a5a2d3417c3dcbf98f38d75c38')

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/
}