now works from other dirs, and PKGBUILD might work

This commit is contained in:
2023-04-25 03:08:54 +10:00
parent b7159cecef
commit 890087df08
3 changed files with 20 additions and 15 deletions

View File

@@ -2,17 +2,18 @@
pkgname=clemmy
pkgver=0.1.0
pkgrel=1
pkgrel=2
pkgdesc='A pure bash client for lemmy, with multiaccount support.'
arch=('any')
url='https://gitea.rakka.tk/Zergling_man/clemmy'
license=('GPL' 'custom:plusnigger.autism.exposed')
depends=('curl' 'jq')
source=('https://gitea.rakka.tk/Zergling_man/clemmy/raw/branch/master/shitty_api.sh')
sha256sums=('f3a3c9453158ca713b5a5fb21e0510a681a143ae74fc105364901248ad2f86b9')
source=('git+https://gitea.rakka.tk/Zergling_man/clemmy.git')
#sha256sums=('') Don't know how to use this on a repo.
package() {
install -d ${pkgdir}/usr/bin
cp ${srcdir}/shitty_api.sh ${pkgdir}/usr/bin/shitty_api
chmod +x ${pkgdir}/usr/bin/shitty_api
install -d ${pkgdir}/usr/bin ${pkgdir}/opt/clemmy
cp *.sh ${pkgdir}/opt/clemmy
ln -s ${pkgdir}/opt/clemmy/clemmy.sh ${pkgdir}/usr/bin/clemmy
chmod +x ${pkgdir}/usr/bin/
}