blob: 4bac000c9faffc0c372cfc89381c06f951965be5 (
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# Maintainer: sapient_cogbag <sapient_cogbag at protonmail dot com>
pkgname=rustcities-git
pkgver=v1.0.2.r0.0192f9a
pkgrel=1
pkgdesc="Neocities API client written in rust"
arch=('x86_64' 'i686')
url="https://gitlab.com/sapient_cogbag/rustcities"
license=('GPL-3.0-or-later')
makedepends=('git' 'cargo')
depends=('openssl' 'gcc-libs' 'glibc')
provides=("rustcities")
conflicts=("rustcities")
source=('rustcities-git::git+https://gitlab.com/sapient_cogbag/rustcities.git#branch=main')
noextract=()
md5sums=('SKIP')
# Please refer to the 'USING VCS SOURCES' section of the PKGBUILD man page for
# a description of each element in the source array.
pkgver() {
cd "$srcdir/rustcities-git"
# Git, tags available
printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
}
prepare() {
cd "$srcdir/rustcities-git"
export RUSTUP_TOOLCHAIN=stable
# Taken from https://wiki.archlinux.org/title/Rust_package_guidelines
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
}
build() {
cd "$srcdir/rustcities-git"
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cargo build --frozen --release --all-features
}
check() {
cd "$srcdir/rustcities-git"
export RUSTUP_TOOLCHAIN=stable
cargo test --frozen --all-features
}
package() {
cd "$srcdir/rustcities-git"
install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/rustcities"
}
|