Package Details: genmake-bin 0.5.0-1

Git Clone URL: (read-only, click to copy)
Package Base: genmake-bin
Description: generate C/C++/Go Makefile template
Upstream URL:
Licenses: AGPL-3.0
Submitter: duapple
Maintainer: duapple
Last Packager: duapple
Votes: 0
Popularity: 0.000000
First Submitted: 2021-12-07 13:03 (UTC)
Last Updated: 2021-12-07 13:03 (UTC)

Latest Comments

lmartinez-mirror commented on 2021-12-13 18:30 (UTC) (edited on 2021-12-13 18:32 (UTC) by lmartinez-mirror)

Hi, I uploaded a genmake-templates-git package to the AUR to separate the templates from the main packages. This way, the templates can update without waiting on a genmake rebuild.

Additionally, I wrote up a patch for your package to utilize genmake-templates-git, all the while cleaning it up for easier reading.

diff --git a/PKGBUILD b/PKGBUILD
index 56bbb9d..f4d44a4 100644
@@ -1,35 +1,20 @@
 # Maintainer: duapple <>
+# Contributor: Luis Martinez <luis dot martinez at disroot dot org>

 pkgdesc="generate C/C++/Go Makefile template"
-        "${url}"
-        "")
-md5sums=("SKIP" "cb3845ee35a1bea7b44daa7a9fef3aaf" "2bb569a143fa683893369eba49e8652c")
-prepare() {
-    rm -rf ${pkgname}-${pkgver}
-    mkdir -p ${pkgname}-${pkgver}
-    mv template ${pkgname}-${pkgver}
-    mv ${basename} ${pkgname}-${pkgver}
-    mv genmake_conf.json ${pkgname}-${pkgver}
+        "genmake_conf-$pkgver.json::$url/attach_files/904564/download/genmake_conf.json")
+            '9846621bf0ecadbe5b5fc27d55bbe394ece82c64db0e254e6b83adcd143bd16b')

 package() {
-    mkdir -p ${pkgdir}/usr/bin/
-    mkdir -p ${pkgdir}/usr/share/${basename}/config
-    cd ${pkgname}-${pkgver}
-    install -Dm777 ${basename} ${pkgdir}/usr/bin/
-    mv template ${pkgdir}/usr/share/${basename}/template
-    cp genmake_conf.json ${pkgdir}/usr/share/${basename}/config/
\ No newline at end of file
+   install -D "$pkgname-$pkgver" "$pkgdir/usr/bin/genmake"
+   install -Dm644 "genmake_conf-$pkgver.json" "$pkgdir/usr/share/genmake/genmake_conf.json"