[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/pdf-tools ed1d4fc4b0 2/2: Add Void Linux OS and package ma
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/pdf-tools ed1d4fc4b0 2/2: Add Void Linux OS and package manager to autobuild script |
Date: |
Sun, 2 Jan 2022 22:58:27 -0500 (EST) |
branch: elpa/pdf-tools
commit ed1d4fc4b02eaf40fbaa7a1a8a2c59eff2a8555d
Author: goiabae <goiabae@github.com>
Commit: Vedang Manerikar <ved.manerikar@gmail.com>
Add Void Linux OS and package manager to autobuild script
Very simple addition to the autobuild script to include the xbps
package manager and Void Linux.
Closes: politza#685
---
server/autobuild | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/server/autobuild b/server/autobuild
index b807c2f870..42489798d8 100755
--- a/server/autobuild
+++ b/server/autobuild
@@ -408,6 +408,29 @@ os_gentoo() {
return 0
}
+# Void
+os_void() {
+ if [ -f "/etc/os-release" ]; then
+ . /etc/os-release
+ if [ "$NAME" != "void" ]; then
+ return 1
+ fi
+ else
+ return 1
+ fi
+ PACKAGES="autoconf
+ automake
+ libpng-devel
+ poppler-devel
+ poppler-glib-devel
+ zlib-devel
+ make
+ pkgconf"
+ PKGCMD=xbps-install
+ PKGARGS="-Sy"
+ return 0
+}
+
# By Parameter --os
os_argument() {
[ -z "$OS" ] && return 1
@@ -422,6 +445,7 @@ os_argument() {
gentoo) os_gentoo "$@";;
msys2) os_msys2 "$@";;
nixos) os_nixos "$@";;
+ void) os_void "$@";;
*) echo "Invalid --os argument: $OS"
exit 1
esac || {
@@ -447,6 +471,7 @@ os_debian "$@" || \
os_gentoo "$@" || \
os_msys2 "$@" || \
os_nixos "$@" || \
+os_void "$@" || \
{
OS_IS_HANDLED=
if [ -z "$DRY_RUN" ]; then