Package Details: genmake-bin 0.6.0-1

Git Clone URL: https://aur.archlinux.org/genmake-bin.git (read-only, click to copy)
Package Base: genmake-bin
Description: Generate C/C++/Go Makefile template
Upstream URL: https://gitee.com/duapple/genmake/raw/master/genmake
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: 2023-10-31 15:29 (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
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,35 +1,20 @@
 # Maintainer: duapple <2832893880@qq.com>
+# Contributor: Luis Martinez <luis dot martinez at disroot dot org>

 pkgname=genmake-bin
-basename=genmake
-pkgver=0.5.0
-pkgrel=1
+pkgver=0.4.0
+pkgrel=2
 pkgdesc="generate C/C++/Go Makefile template"
 arch=('x86_64')
-url="https://gitee.com/duapple/genmake/attach_files/904692/download/genmake"
-license=('AGPL-3.0')
-depends=()
-makedepends=("git")
-optdepends=()
-source=("${srcdir}/template::git+https://gitee.com/duapple/makefile.git"
-        "${url}"
-        "https://gitee.com/duapple/genmake/attach_files/904564/download/genmake_conf.json")
-noextract=()
-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}
-}
+url="https://gitee.com/duapple/genmake"
+license=('AGPL3')
+depends=('genmake-templates')
+source=("$pkgname-$pkgver::$url/attach_files/904692/download/genmake"
+        "genmake_conf-$pkgver.json::$url/attach_files/904564/download/genmake_conf.json")
+sha256sums=('554dfd233a13556c1f128974acbc0e6a5b2190e274d164908b19cb889181bde0'
+            '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"
+}