summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2023-05-15 00:27:14 +0200
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2023-05-15 00:27:26 +0200
commit97da821ad36e7262cb7341281668797cbdaf5ca7 (patch)
tree5904d3cee06094ccb1aaf1f8096ddb0e73931bd4
parentc6347caf060af0cda24eee809207aa308d55232e (diff)
hello: remove root and daemon requirements
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
-rw-r--r--hello/PKGBUILD11
1 files changed, 6 insertions, 5 deletions
diff --git a/hello/PKGBUILD b/hello/PKGBUILD
index 266e293..520f72e 100644
--- a/hello/PKGBUILD
+++ b/hello/PKGBUILD
@@ -4,12 +4,16 @@
# Maintainer: Parabola Hackers <dev@lists.parabola.nu>
pkgname="hello"
pkgver=2.12.1
-pkgrel=2
+pkgrel=1
pkgdesc="GNU Hello (example GNU package)"
arch=('x86_64')
url='https://www.gnu.org/software/hello/'
# We use static linking, so it includes the Glibc (GPL, LGPL) as well.
license=('GPL' 'LGPL' 'GPL3')
+makedepends=('buildah'
+ 'coreutils'
+ 'make'
+ 'xz')
source=("https://ftp.gnu.org/gnu/hello/${pkgname}-${pkgver}.tar.gz"{,.sig}
'Dockerfile'
'GPL.txt'
@@ -31,10 +35,7 @@ build(){
./configure --prefix=/ LDFLAGS=-static
make
- sudo docker build --tag=hello .
- sudo docker save -o hello.tar hello
- sudo chmod 777 hello.tar
- sudo chown "$(id -u):$(id -g)" hello.tar
+ buildah build -f Dockerfile -t hello -o type=tar,dest=hello.tar
xz -f -9e --verbose -T 0 hello.tar
}