From f7c329af972393b26d94c7833db66fda656c4d86 Mon Sep 17 00:00:00 2001 From: Zergling_man Date: Fri, 2 Jun 2023 10:58:31 +1000 Subject: [PATCH] PKGBUILD should work now. --- PKGBUILD | 9 +++++---- clemmy.sh | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/PKGBUILD b/PKGBUILD index df43397..e7b0069 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,20 +1,21 @@ # Maintainer: Zergling_man, from fedora.email +#Well, it seems to work now. pkgname=clemmy -pkgver=0.1.0 +pkgver=0.1.1 pkgrel=2 pkgdesc='A pure bash client for lemmy, with multiaccount support.' arch=('any') url='http://precious.harpy.faith/Zergling_man/clemmy' license=('GPL' 'custom:plusnigger.autism.exposed') depends=('curl' 'jq') -source=('git://precious.harpy.faith/Zergling_man/clemmy.git') +source=('git+http://precious.harpy.faith/Zergling_man/clemmy.git') sha256sums=('SKIP') #Don't know how to use this on a repo. package() { + cd ${pkgname} install -d ${pkgdir}/usr/bin ${pkgdir}/opt/clemmy - cp *.sh ${pkgdir}/opt/clemmy - cp -r commands ${pkgdir}/opt/clemmy/commands + cp -r . ${pkgdir}/opt/clemmy ln -s ${pkgdir}/opt/clemmy/clemmy.sh ${pkgdir}/usr/bin/clemmy chmod +x ${pkgdir}/opt/clemmy/clemmy.sh } \ No newline at end of file diff --git a/clemmy.sh b/clemmy.sh index 6170b90..173328b 100755 --- a/clemmy.sh +++ b/clemmy.sh @@ -8,7 +8,7 @@ source $imps/pretty.sh source $imps/creds.sh source $imps/utils.sh -while getopts "a:i:hv" o;do case "${o}" in +while getopts "a:hi:v" o;do case "${o}" in a) INSTANCE=${insts[$OPTARG]}; TOKE=${tokes[$OPTARG]};; i) INSTANCE=$OPTARG;; h) echo $actions; exit;;