This is a template for a simple application for VSK Apps. It is based on the Python, Vue.js and TypeScript.
Application template depends on the following packages:
To start Application, run the following steps:
- Clone the repository
git clone git@github.com:Vasak-OS/application-template.git
- Move to the directory
cd application-template
- Install dependencies and Build UI
cd ui/
yarn install
yarn build
cd ..
- Start Application
python application-template.py --webEngineArgs --remote-debugging-port=3030 --remote-allow-origins=http://127.0.0.1:3030 # --debug
python application-template.py # normal mode
# Maintainer: Your Name <your_email@domain>
pkgname=application-template
pkgver=0.0.1
pkgrel=1
pkgdesc="PKGBUILD template for VSK Apps"
url="https://github.com/Vasak-OS/$pkgname/"
depends=(
'python-libvasak'
'libvasak-ui'
)
makedepends=(
'nodejs'
)
license=('GPL')
arch=('x86_64')
md5sums=('68c81dfe3a33b44ea3c88451fccdc159')
source=("$url/archive/refs/tags/$pkgver.tar.gz")
package() {
cd $pkgname-$pkgver
install -dm755 "${pkgdir}/usr/share/${pkgname}/"
install -d "${pkgdir}/bin"
cd "${pkgdir}/usr/share/${pkgname}/ui" && npm i && npm run build
cp -r "${srcdir}/${pkgname}-${pkgver}/src/*" "${pkgdir}/usr/share/${pkgname}/src/"
cp -r "${srcdir}/${pkgname}-${pkgver}/ui/dist/*" "${pkgdir}/usr/share/${pkgname}/ui/dist/"
cp "${srcdir}/${pkgname}-${pkgver}/${pkgname}" "${pkgdir}/usr/share/${pkgname}/"
cp "${srcdir}/${pkgname}-${pkgver}/${pkgname}.py" "${pkgdir}/usr/share/${pkgname}/"
chmod a+x "${pkgdir}/usr/share/${pkgname}/${pkgname}"
ln -sf "/usr/share/${pkgname}/${pkgname}" "${pkgdir}/bin/${pkgname}"
}