makedeb


makedeb-beta 16.1.0-beta1


A simplicity-focused packaging tool for Debian archives

Click here to go back to the commit logs for makedeb-beta.

Commit:


Hash: 0dfc32ecb1f710966467b79f6863b2642e1c6289

Message: Updated version to 7.1.0-1

Diff


diff --git a/.SRCINFO b/.SRCINFO
index 7a19426..4341832 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,22 +1,25 @@
 generated-by = makedeb-makepkg
 
 pkgbase = makedeb-beta
-	pkgdesc = Create Debian archives from PKGBUILDs (beta release)
-	pkgver = 6.3.12
+	pkgdesc = The modern packaging tool for Debian archives (beta release)
+	pkgver = 7.1.0
 	pkgrel = 1
 	url = https://github.com/makedeb/makedeb
 	arch = any
 	license = GPL3
+	makedepends = git
 	depends = bash
 	depends = binutils
 	depends = tar
 	depends = file
+	depends = lsb-release
+	depends = asciidoctor
 	depends = makedeb-makepkg-beta
 	optdepends = apt
 	optdepends = git
 	conflicts = makedeb
 	conflicts = makedeb-alpha
-	source = https://github.com/makedeb/makedeb/archive/refs/tags/v6.3.12-beta.tar.gz
+	source = git+https://github.com/makedeb/makedeb/#tag=v7.1.0-beta
 	sha256sums = SKIP
 
 pkgname = makedeb-beta
diff --git a/PKGBUILD b/PKGBUILD
index ba4e090..f534bc5 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,34 +2,35 @@
 _release_type=beta
 
 pkgname=makedeb-beta
-pkgver=6.3.12
+pkgver=7.1.0
 pkgrel=1
-pkgdesc="Create Debian archives from PKGBUILDs (${_release_type} release)"
+pkgdesc="The modern packaging tool for Debian archives (${_release_type} release)"
 arch=('any')
 license=('GPL3')
-depends=('bash' 'binutils' 'tar' 'file' 'makedeb-makepkg-beta')
+depends=('bash' 'binutils' 'tar' 'file' 'lsb-release' 'asciidoctor' 'makedeb-makepkg-beta')
+makedepends=('git')
 optdepends=('apt' 'git')
 conflicts=('makedeb' 'makedeb-alpha')
 url="https://github.com/makedeb/makedeb"
 
-source=("${url}/archive/refs/tags/v${pkgver}-${_release_type}.tar.gz")
+source=("git+${url}/#tag=v${pkgver}-${_release_type}")
 sha256sums=('SKIP')
 
 prepare() {
-  cd "makedeb-${pkgver}-${_release_type}"
-  
+  cd makedeb/
+
   # Set package version and release type
   sed -i "s|makedeb_package_version=.*|makedeb_package_version=${pkgver}-${pkgrel}|"  src/makedeb.sh
   sed -i "s|makedeb_release_type=.*|makedeb_release_type=${_release_type}|" src/makedeb.sh
 
   # Remove testing commands
-  sed -i 's|.*# REMOVE AT PACKAGING||g'                                     src/makedeb.sh
+  sed -i 's|.*# REMOVE AT PACKAGING||g' src/makedeb.sh
 }
 
 package() {
   # Create single file for makedeb
   mkdir -p "${pkgdir}/usr/bin"
-  cd "makedeb-${pkgver}-${_release_type}"
+  cd makedeb/
 
   # Add bash shebang
   echo '#!/usr/bin/env bash' > "${pkgdir}/usr/bin/makedeb"
@@ -42,6 +43,14 @@ package() {
   done
 
   cat "src/makedeb.sh" >> "${pkgdir}/usr/bin/makedeb"
-
   chmod 555 "${pkgdir}/usr/bin/makedeb"
+
+  # Set up man pages
+  SOURCE_DATE_EPOCH="$(git log -1 --pretty='%ct' man/makedeb.8.adoc)" \
+    asciidoctor -b manpage man/makedeb.8.adoc \
+                -o "${pkgdir}/usr/share/man/man8/makedeb.8"
+
+  SOURCE_DATE_EPOCH="$(git log -1 --pretty='%ct' man/pkgbuild.5.adoc)" \
+    asciidoctor -b manpage man/pkgbuild.5.adoc \
+                -o "${pkgdir}/usr/share/man/man5/pkgbuild.5"
 }