fix some more crap

This commit is contained in:
speedie 2023-07-05 22:54:57 +02:00
parent df730ea5f4
commit 0b576e43a2
2 changed files with 9 additions and 9 deletions

View file

@ -33,7 +33,7 @@ pkg_arch: dist
command -v makepkg > /dev/null || exit 1
[ -f PKGBUILD ] || exit 1
cp -f PKGBUILD PKGBUILD.orig
sed -i "s/VERSION/${VER}/g; s/MD5SUM/$$(md5sum *.tar.gz | cut -d ' ' -f 1)/g; s/NAME/${NAME}/g; s/DESC/${DESC}/g; s/URL/${URL}/g; s/LICENSE/${LICENSE}/g; s/DEPENDENCIES/${DEPENDENCIES}/g; s/GROUPS/${GROUPS}/g" PKGBUILD
sed "s|VERSION|${VER}|g; s|MD5SUM|$$(md5sum *.tar.gz | cut -d ' ' -f 1)|g; s|NAME|${NAME}|g; s|DESC|${DESC}|g; s|URL|${URL}|g; s|LICENSE|${LICENSE}|g; s|DEPENDENCIES|${DEPENDENCIES}|g; s|GROUPS|${GROUPS}|g" PKGBUILD.orig > PKGBUILD
makepkg -sfr --sign || exit 1
rm -rf src/ pkg/
cp PKGBUILD ${NAME}-${VER}.PKGBUILD; mv PKGBUILD.orig PKGBUILD

View file

@ -1,8 +1,8 @@
NAME = "my-awesome-program"# Program name here. It will be added to the PKGBUILD automatically.
DESC = "My awesome description here"# Program description here. It will be added to the PKGBUILD automatically.
URL = "https://git.example.com/me/my-awesome-program"# URL to the program here. It will be added to the PKGBUILD automatically.
LICENSE = "GPL"# License of the program. It will be added to the PKGBUILD automatically.
VER = "0.1"# The version number here. It will be added to the PKGBUILD automatically.
DEPENDENCIES = ""# Dependencies for the program. It will be added to the PKGBUILD automatically.
GROUPS = ""# Groups the program is part of. It will be added to the PKGBUILD automatically.
PREFIX = "/usr"# Prefix
NAME = my-awesome-program
DESC = My awesome description here
URL = https://git.example.com/me/my-awesome-program
LICENSE = GPL
VER = 0.1
DEPENDENCIES =
GROUPS =
PREFIX = /usr