summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 64ae1aca7e9a7793a20750e89cff4fca3d6ae5c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Maintainer: threadexio <pzarganitis at gmail dot com>
pkgname=zeus
pkgver=3.1.0
pkgrel=1
pkgdesc="The containerized AUR helper"
url="https://github.com/threadexio/zeus"
arch=('any')
license=('GPL')
depends=('docker')
makedepends=('cargo')
source=("https://github.com/threadexio/zeus/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('ad664726e11bc2c6540c4db0dc4aa1eb943d1f41b7b0a0b41a7f158fe1573511')
conflicts=(zeus-bin)

prepare() {
	cd "$srcdir/${pkgname}-${pkgver}"
	cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
}

build() {
	cd "$srcdir/${pkgname}-${pkgver}"

	export RUSTUP_TOOLCHAIN=stable
	export CARGO_TARGET_DIR=target
	
	./scripts/make_package.sh
}

package() {
	cd "$srcdir/${pkgname}-${pkgver}"

	tar -axvpf zeus.tar.gz -C "$pkgdir"
}