Subject: [alpine-aports] [PATCH] main/acpi: modernise APKBUILD

From: Cág <[email-masked]>
Date: Wed, 1 Nov 2017 19:10:09 +0000

---
 main/acpi/APKBUILD | 14 ++++++--------
 1 file changed, 6 insertions(+), 8 deletions(-)

diff --git a/main/acpi/APKBUILD b/main/acpi/APKBUILD
index e645dd4128..de602319e9 100644
--- a/main/acpi/APKBUILD
+++ b/main/acpi/APKBUILD
@@ -1,7 +1,7 @@
-# Maintainer:
+# Maintainer: Cág <[email-masked]>
 pkgname=acpi
 pkgver=1.7
-pkgrel=1
+pkgrel=2
 pkgdesc="ACPI client for battery, power, and thermal readings"
 url="http://sourceforge.net/projects/acpiclient/files/acpiclient/"
 arch="all"
@@ -19,22 +19,20 @@ prepare() {
 	cd "$_builddir"
 	for i in $source; do
 		case $i in
-		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+		*.patch) msg $i; patch -p1 -i "$srcdir"/$i;;
 		esac
 	done
 }
 
 build() {
 	cd "$_builddir"
-	./configure --prefix=/usr || return 1
-	make || return 1
+	./configure --prefix=/usr
+	make
 }
 
 package() {
 	cd "$_builddir"
-	make DESTDIR"=$pkgdir" install || return 1
+	make DESTDIR"=$pkgdir" install
 }
 
-md5sums="b52ce4ca39bbf7000a1c2de8879f1dcb  acpi-1.7.tar.gz"
-sha256sums="d7a504b61c716ae5b7e81a0c67a50a51f06c7326f197b66a4b823de076a35005  acpi-1.7.tar.gz"
 sha512sums="e6c96707d651eb20aa4a4c76f78891154d576ccdfaef08b5eff6094b90b62a0e97f6e35a4a996dcc3b5f0b57ee2c60542f41832039c6cbdf853ff3d022c1b609  acpi-1.7.tar.gz"
-- 
2.15.0

---
Unsubscribe:  [email-masked]
Help:         [email-masked]
---