PKGBUILD should work now.

This commit is contained in:
Zergling_man 2023-06-02 10:58:31 +10:00
parent 64672de712
commit f7c329af97
2 changed files with 6 additions and 5 deletions

View File

@ -1,20 +1,21 @@
# Maintainer: Zergling_man, from fedora.email # Maintainer: Zergling_man, from fedora.email
#Well, it seems to work now.
pkgname=clemmy pkgname=clemmy
pkgver=0.1.0 pkgver=0.1.1
pkgrel=2 pkgrel=2
pkgdesc='A pure bash client for lemmy, with multiaccount support.' pkgdesc='A pure bash client for lemmy, with multiaccount support.'
arch=('any') arch=('any')
url='http://precious.harpy.faith/Zergling_man/clemmy' url='http://precious.harpy.faith/Zergling_man/clemmy'
license=('GPL' 'custom:plusnigger.autism.exposed') license=('GPL' 'custom:plusnigger.autism.exposed')
depends=('curl' 'jq') 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. sha256sums=('SKIP') #Don't know how to use this on a repo.
package() { package() {
cd ${pkgname}
install -d ${pkgdir}/usr/bin ${pkgdir}/opt/clemmy install -d ${pkgdir}/usr/bin ${pkgdir}/opt/clemmy
cp *.sh ${pkgdir}/opt/clemmy cp -r . ${pkgdir}/opt/clemmy
cp -r commands ${pkgdir}/opt/clemmy/commands
ln -s ${pkgdir}/opt/clemmy/clemmy.sh ${pkgdir}/usr/bin/clemmy ln -s ${pkgdir}/opt/clemmy/clemmy.sh ${pkgdir}/usr/bin/clemmy
chmod +x ${pkgdir}/opt/clemmy/clemmy.sh chmod +x ${pkgdir}/opt/clemmy/clemmy.sh
} }

View File

@ -8,7 +8,7 @@ source $imps/pretty.sh
source $imps/creds.sh source $imps/creds.sh
source $imps/utils.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]};; a) INSTANCE=${insts[$OPTARG]}; TOKE=${tokes[$OPTARG]};;
i) INSTANCE=$OPTARG;; i) INSTANCE=$OPTARG;;
h) echo $actions; exit;; h) echo $actions; exit;;