makedeb
A simplicity-focused packaging tool for Debian archives
Click here to go back to the commit logs for makedeb-beta.
Hash: 8e83bd83ca2349adf65b0b0ec071897c79fdf4e7
Message: Updated version to 8.3.1-1
diff --git a/.SRCINFO b/.SRCINFO
index 2908b12..6ed4dd8 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -2,26 +2,27 @@ generated-by = makedeb-makepkg
pkgbase = makedeb-beta
pkgdesc = The modern packaging tool for Debian archives (beta release)
- pkgver = 8.1.1
+ pkgver = 8.3.1
pkgrel = 1
url = https://github.com/makedeb/makedeb
arch = any
license = GPL3
+ makedepends = asciidoctor
makedepends = git
+ makedepends = make
+ makedepends = jq
+ depends = apt
depends = bash
depends = binutils
- depends = tar
depends = file
depends = lsb-release
depends = python3
depends = python3-apt
- depends = asciidoctor
+ depends = tar
depends = makedeb-makepkg-beta
- optdepends = apt
- optdepends = git
conflicts = makedeb
conflicts = makedeb-alpha
- source = git+https://github.com/makedeb/makedeb/#tag=v8.1.1-beta
+ source = makedeb::git+https://github.com/makedeb/makedeb/#tag=v8.3.1-1-beta
sha256sums = SKIP
pkgname = makedeb-beta
diff --git a/PKGBUILD b/PKGBUILD
index a55879a..c7ad7a2 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,61 +1,27 @@
-# Maintainer: Hunter Wittenborn: <hunter@hunterwittenborn.com>
-_release_type=beta
+# Maintainer: Hunter Wittenborn <hunter@hunterwittenborn.com>
+_release=beta
+_target=mpr
pkgname=makedeb-beta
-pkgver=8.1.1
+pkgver=8.3.1
pkgrel=1
-pkgdesc="The modern packaging tool for Debian archives (${_release_type} release)"
+pkgdesc="The modern packaging tool for Debian archives (${_release} release)"
arch=('any')
license=('GPL3')
-depends=('bash' 'binutils' 'tar' 'file' 'lsb-release' 'python3' 'python3-apt' 'asciidoctor' 'makedeb-makepkg-beta')
-makedepends=('git')
-optdepends=('apt' 'git')
+depends=('apt' 'bash' 'binutils' 'file' 'lsb-release' 'python3' 'python3-apt' 'tar' 'makedeb-makepkg-beta')
+makedepends=('asciidoctor' 'git' 'make' 'jq')
conflicts=('makedeb' 'makedeb-alpha')
url="https://github.com/makedeb/makedeb"
-source=("git+${url}/#tag=v${pkgver}-${_release_type}")
+source=("makedeb::git+${url}/#tag=v${pkgver}-${pkgrel}-${_release}")
sha256sums=('SKIP')
prepare() {
- 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
+ cd makedeb/
+ make prepare PKGVER="${pkgver}" RELEASE="${_release}" TARGET="${_target}"
}
package() {
- # Create single file for makedeb
- mkdir -p "${pkgdir}/usr/bin"
- cd makedeb/
-
- # Add bash shebang
- echo '#!/usr/bin/env bash' > "${pkgdir}/usr/bin/makedeb"
-
- # Copy functions
- for i in $(find "src/functions/"); do
- if ! [[ -d "${i}" ]]; then
- cat "${i}" >> "${pkgdir}/usr/bin/makedeb"
- fi
- done
-
- cat "src/makedeb.sh" >> "${pkgdir}/usr/bin/makedeb"
- chmod 555 "${pkgdir}/usr/bin/makedeb"
-
- # Copy over extra utilities.
- cd ./src/utils/
- find ./ -type f -exec install -Dm 755 '{}' "${pkgdir}/usr/share/makedeb/utils/{}" \;
- cd ../../
-
- # 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"
+ cd makedeb/
+ make package DESTDIR="${pkgdir}"
}