diff --git a/repo/waydroid-script-git/PKGBUILD b/repo/waydroid-script-git/PKGBUILD new file mode 100644 index 0000000..d8a0443 --- /dev/null +++ b/repo/waydroid-script-git/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer: Imperator Storm +# Contributor: q234 rty +# Contributor: Sam L. Yes + +_repo_name=waydroid_script +_script=main.py +pkgname=waydroid-script-git +_pkgname=waydroid-script +pkgver=r177.1a2d3ad +pkgrel=3 +pkgdesc="Python Script to add OpenGapps, Magisk, libhoudini translation library and libndk translation library to waydroid" +arch=('any') +url="https://github.com/casualsnek/$_repo_name" +license=(GPL-3.0-only) +makedepends=(git) +depends=(python-requests python-tqdm python-inquirerpy dbus-python lzip sqlite waydroid) +optdepends=() +provides=(waydroid-script) +conflicts=(waydroid-script) +source=("git+${url}.git") +sha256sums=(SKIP) + +pkgver() { + cd ${srcdir}/$_repo_name + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +package() { + cd ${srcdir}/$_repo_name + install -d ${pkgdir}/opt/${_pkgname} + cp -r * ${pkgdir}/opt/${_pkgname}/ + chmod +x ${pkgdir}/opt/${_pkgname}/main.py + install -d ${pkgdir}/usr/bin + ln -s /opt/${_pkgname}/main.py ${pkgdir}/usr/bin/waydroid-extras + install -Dm755 ${pkgdir}/opt/${_pkgname}/LICENSE ${pkgdir}/usr/share/licenses/$pkgname/LICENSE + install -Dm755 ${pkgdir}/opt/${_pkgname}/README.md ${pkgdir}/usr/share/doc/$pkgname/README.md + rm -rf ${pkgdir}/opt/${_pkgname}/{LICENSE,README.md,requirements.txt,assets} +}