mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 05:17:07 +02:00
43 lines
1.4 KiB
Plaintext
43 lines
1.4 KiB
Plaintext
# Contributor: Bart Ribbers <bribbers@disroot.org>
|
|
# Maintainer: Bart Ribbers <bribbers@disroot.org>
|
|
pkgname=apx
|
|
pkgver=1.8.2
|
|
pkgrel=1
|
|
pkgdesc="A package manager that can install packages from multiple sources without altering the root filesystem"
|
|
url="https://github.com/Vanilla-OS/apx"
|
|
license="GPL-3.0-only"
|
|
# s390x, riscv64, armv7, armhf and x86 blocked by podman -> distrobox
|
|
arch="x86_64 aarch64 ppc64le"
|
|
depends="distrobox"
|
|
makedepends="go"
|
|
subpackages="$pkgname-doc"
|
|
source="https://github.com/Vanilla-OS/apx/archive/$pkgver/apx-$pkgver.tar.gz
|
|
config.json
|
|
"
|
|
# net required to download go modules
|
|
# no tests
|
|
options="net !check"
|
|
|
|
export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
|
|
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
|
|
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"
|
|
|
|
build() {
|
|
go build -trimpath -v -o apx
|
|
}
|
|
|
|
package() {
|
|
install -Dm755 apx "$pkgdir"/usr/bin/apx
|
|
install -Dm644 "$srcdir"/config.json "$pkgdir"/usr/share/apx/config.json
|
|
|
|
install -Dm755 man/man1/apx.1 "$pkgdir"/usr/share/man/man1/apx.1
|
|
for lang in es nl ro sv; do
|
|
install -Dm755 man/$lang/man1/apx.1 "$pkgdir"/usr/share/man/$lang/man1/apx.1
|
|
done
|
|
}
|
|
|
|
sha512sums="
|
|
f65ac3d4ea798a0de0bc4958ebf8050bb427065096e332be0419808cfc96a32871e48d41f22f70c153d897ddf72b043baa57ac25a9de7d571b0069da2e0e5561 apx-1.8.2.tar.gz
|
|
0d0e999b5b2e714bcd63e69357740a805cf3670c2e9d03c36700de17aec0445e56cb1da27b1b192fe11287beb98833d616fcc51937872b845bdb693ea9901929 config.json
|
|
"
|