makedeb
A simplicity-focused packaging tool for Debian archives
Click here to go back to the commit logs for makedeb.
Hash: 159ba8e7866fb08e47d9c3aa1e3956a7f2b68335
Message: Updated version to 7.1.2-1
diff --git a/.SRCINFO b/.SRCINFO
index 55869b6..dd6db8a 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,22 +1,25 @@
generated-by = makedeb-makepkg
pkgbase = makedeb
- pkgdesc = Create Debian archives from PKGBUILDs (stable release)
- pkgver = 6.3.11
+ pkgdesc = The modern packaging tool for Debian archives (stable release)
+ pkgver = 7.1.2
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
optdepends = apt
optdepends = git
conflicts = makedeb-beta
conflicts = makedeb-alpha
- source = https://github.com/makedeb/makedeb/archive/refs/tags/v6.3.11-stable.tar.gz
+ source = git+https://github.com/makedeb/makedeb/#tag=v7.1.2-stable
sha256sums = SKIP
pkgname = makedeb
diff --git a/PKGBUILD b/PKGBUILD
index 28211ea..5d42182 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,34 +2,35 @@
_release_type=stable
pkgname=makedeb
-pkgver=6.3.11
+pkgver=7.1.2
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')
+depends=('bash' 'binutils' 'tar' 'file' 'lsb-release' 'asciidoctor' 'makedeb-makepkg')
+makedepends=('git')
optdepends=('apt' 'git')
conflicts=('makedeb-beta' '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"
}