makedeb


makedeb-alpha 16.1.0-alpha20


A simplicity-focused packaging tool for Debian archives

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

Commit:


Hash: de2b7a45db4b15f2375f456e7b5e46c4d7efd042

Message: Updated version to 5.9.3-1

Diff


diff --git a/.SRCINFO b/.SRCINFO
index 5c52e0c..1d58f6e 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,18 @@
 pkgbase = makedeb-alpha
-	pkgver = 0
-	pkgrel = 0
+	pkgdesc = Create Debian archives from PKGBUILDs (alpha release)
+	pkgver = 5.9.3
+	pkgrel = 1
+	url = https://github.com/makedeb/makedeb
 	arch = any
+	license = GPL3
+	depends = bash
+	depends = binutils
+	depends = file
+	depends = dpkg-dev
+	depends = makepkg
+	optdepends = apt
+	optdepends = git
+	source = https://github.com/makedeb/makedeb/archive/refs/tags/v5.9.3-alpha.tar.gz
+	sha256sums = SKIP
 
 pkgname = makedeb-alpha
diff --git a/PKGBUILD b/PKGBUILD
index 29c8d91..4378153 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,8 +1,41 @@
-# NOTICE: This is a placeholder PKGBUILD. It will be updated shortly to work properly.
+# Maintainer: Hunter Wittenborn: <hunter@hunterwittenborn.com>
+_release_type=alpha
 
 pkgname=makedeb-alpha
-pkgver=0
-pkgrel=0
+pkgver=5.9.3
+pkgrel=1
+pkgdesc="Create Debian archives from PKGBUILDs (${_release_type} release)"
 arch=('any')
+license=('GPL3')
+depends=('bash' 'binutils' 'file' 'dpkg-dev' 'makepkg')
+optdepends=('apt' 'git')
+url="https://github.com/makedeb/makedeb"
 
-package(){ true; }
+source=("${url}/archive/refs/tags/v${pkgver}-${_release_type}.tar.gz")
+sha256sums=('SKIP')
+
+package() {
+    # Create single file for makedeb
+    mkdir -p "${pkgdir}/usr/bin"
+    cd "makedeb-${_release_type}-v${pkgver}"
+
+    # 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"
+
+    # Set package version, release type, and target OS
+    sed -i "s|makedeb_package_version=.*|makedeb_package_version=${pkgver}|" "${pkgdir}/usr/bin/makedeb"
+	sed -i "s|makedeb_release_type=.*|makedeb_release_type=${_release_type}"
+
+    # Remove testing commands
+    sed -i 's|.*# REMOVE AT PACKAGING||g' "${pkgdir}/usr/bin/makedeb"
+}