blob: 3c88e7656002b51cd1ba909cb50bd695c00c3c31 (
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: Kyrill Belomenov <apfel236@outlook.de>
pkgname="rhp-git"
pkgver=r47.c23cd9f
pkgrel=1
pkgdesc="An rusherhack plugin manager"
arch=('x86_64')
url="https://github.com/kybe236/rhp"
license=('MIT')
makedepends=('git' 'zig')
source=('git+https://github.com/kybe236/rhp.git')
noextract=()
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/rhp"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}
build() {
cd "$srcdir/rhp"
zig build -Doptimize=ReleaseFast
}
package() {
cd "$srcdir/rhp"
install -Dm755 "zig-out/bin/rhp" "$pkgdir/usr/bin/rhp"
install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|