diff --git a/Makefile b/Makefile index bc215b6..614f96a 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/options.mk b/options.mk index 2ca43f9..eaa9f21 100644 --- a/options.mk +++ b/options.mk @@ -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