blob: e61ad029a631905139d23c47f09df96cceedd0f5 (
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: Ash <xash at riseup d0t net>
pkgname=rusty-psn-cli-git
_pkgname=rusty-psn
pkgver=0.5.0.r1.ga227494
pkgrel=2
provides=('rusty-psn')
conflicts=('rusty-psn-bin')
replaces=('rusty-psn-bin')
pkgdesc='A tool for downloading PS3 and PS4 game updates (CLI-only version)'
url='https://github.com/RainbowCookie32/rusty-psn'
license=('MIT')
arch=('x86_64')
makedepends=('cargo' 'rust' 'pkgconf' 'git')
depends=('openssl')
options=('!lto')
source=("$_pkgname::git+https://github.com/RainbowCookie32/rusty-psn.git")
sha256sums=('SKIP')
pkgver() {
cd "$_pkgname"
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "$_pkgname"
cargo build --release --features "cli"
}
package() {
cd "$_pkgname"
install -Dm755 "${CARGO_TARGET_DIR:-target}/release/rusty-psn" "$pkgdir/usr/bin/rusty-psn"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|