emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/pdf-tools 19801defb8 10/16: Add support for Alpine Linux t


From: ELPA Syncer
Subject: [nongnu] elpa/pdf-tools 19801defb8 10/16: Add support for Alpine Linux to autobuild
Date: Tue, 29 Nov 2022 01:59:31 -0500 (EST)

branch: elpa/pdf-tools
commit 19801defb89ba6208afe96dbbb44ba84fb579f23
Author: Vedang Manerikar <ved.manerikar@gmail.com>
Commit: Vedang Manerikar <ved.manerikar@gmail.com>

    Add support for Alpine Linux to autobuild
    
    This ensures that all operating systems currently mentioned in the
    README are covered in the autobuild script
    
    Relates to: #160
---
 server/autobuild | 27 ++++++++++++++++++++++++++-
 1 file changed, 26 insertions(+), 1 deletion(-)

diff --git a/server/autobuild b/server/autobuild
index d9f7975449..de42806fcc 100755
--- a/server/autobuild
+++ b/server/autobuild
@@ -455,6 +455,28 @@ os_opensuse() {
     return 0
 }
 
+# Alpine Linux
+os_alpine() {
+    if [ -f "/etc/os-release" ]; then
+        . /etc/os-release
+        if [ "$ID" != "alpine" ]; then
+          return 1
+        fi
+    else
+      return 1
+    fi
+    PACKAGES="autoconf
+              automake
+              libpng-dev
+              poppler-dev
+              glib-dev
+              gcc
+              build-base"
+    PKGCMD=apk
+    PKGARGS="add"
+    return 0
+}
+
 # By Parameter --os
 os_argument() {
     [ -z "$OS" ] && return 1
@@ -471,6 +493,7 @@ os_argument() {
         nixos)   os_nixos   "$@";;
         void)    os_void    "$@";;
         opensuse) os_opensuse "$@";;
+        alpine)  os_alpine  "$@";;
         *)       echo "Invalid --os argument: $OS"
                  exit 1
     esac || {
@@ -480,7 +503,8 @@ os_argument() {
 }
 
 ## +-----------------------------------------------------------+
-## * Figure out were we are, install deps and build the program
+## * Figure out where we are
+## ** install deps and build the program
 ## +-----------------------------------------------------------+
 
 handle_options "$@"
@@ -498,6 +522,7 @@ os_msys2    "$@" || \
 os_nixos    "$@" || \
 os_void     "$@" || \
 os_opensuse "$@" || \
+os_alpine   "$@" || \
 {
     OS_IS_HANDLED=
     if [ -z "$DRY_RUN" ]; then



reply via email to

[Prev in Thread] Current Thread [Next in Thread]