2024-03-25 22:48:30 +08:00
|
|
|
# Maintainer: Vomitblood <tohyouxuan@gmail.com>
|
|
|
|
|
2024-03-25 15:21:59 +08:00
|
|
|
pkgname=rustmon-git
|
2024-03-25 01:57:02 +08:00
|
|
|
pkgdesc="Pokemon Colorscripts written in Rust"
|
2024-03-25 15:21:59 +08:00
|
|
|
_gitname=rustmon
|
2024-04-22 08:49:17 +08:00
|
|
|
pkgver=r41.bc2beb1
|
2024-03-25 01:57:02 +08:00
|
|
|
pkgrel=1
|
|
|
|
arch=('x86_64')
|
|
|
|
url="https://github.com/Vomitblood/$_gitname"
|
|
|
|
license=('GPL')
|
2024-04-22 08:49:17 +08:00
|
|
|
depends=('glibc' 'gcc-libs' 'base-devel')
|
2024-03-25 01:57:02 +08:00
|
|
|
makedepends=('git' 'cargo')
|
|
|
|
provides=("$_gitname")
|
|
|
|
source=("git+$url.git")
|
|
|
|
md5sums=('SKIP')
|
|
|
|
options=(!debug)
|
|
|
|
PKGEXT='.pkg.tar'
|
|
|
|
|
|
|
|
pkgver() {
|
|
|
|
cd "$_gitname"
|
|
|
|
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "$srcdir/$_gitname"
|
2024-03-25 15:06:57 +08:00
|
|
|
# build main program
|
2024-04-22 08:49:17 +08:00
|
|
|
cargo build --release --bin rustmon
|
2024-03-25 15:06:57 +08:00
|
|
|
# build mini program
|
|
|
|
cargo build --release --bin minimon
|
2024-03-25 01:57:02 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "$srcdir/$_gitname"
|
2024-04-22 08:49:17 +08:00
|
|
|
install -Dm755 target/release/rustmon "$pkgdir/usr/bin/rustmon"
|
2024-03-25 15:06:57 +08:00
|
|
|
install -Dm755 target/release/minimon "$pkgdir/usr/bin/minimon"
|
2024-03-25 01:57:02 +08:00
|
|
|
}
|