summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2083016abf2f6a0e346e82c788ae752f6e032481 (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
# Maintainer: Muhammad Hammam <warozfen1@proton.me>
pkgname=rebos-git
pkgver=r81.0aec63e
pkgrel=1
makedepends=('rust' 'cargo')
optdepends=('flatpak' 'cargo')
arch=('i686' 'x86_64' 'armv6h' 'armv7h')
pkgdesc="NixOS-like repeatability for any Linux distro."
license=('GPL-3.0-or-later')
url=https://gitlab.com/Oglo12/rebos
source=("${pkgname}::git+${url}")
sha256sums=('SKIP')
_binname=rebos

pkgver() {
	cd "${pkgname}"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	cd "${pkgname}"
	cargo build --release
}

package() {
	cd "${pkgname}"
	install -Dm755 "./target/release/${_binname}" "${pkgdir}/usr/bin/${_binname}"
	install -Dm644 "./README.md" "${pkgdir}/usr/share/doc/${pkgname}"
}