blob: 7ac748aabe415da510ffc7cc87935b7b21d1ff32 (
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
|
# Maintainer: Ash <xash at riseup d0t net>
pkgname=rusty-psn-git
_pkgname=rusty-psn
pkgver=0.5.0.r1.ga227494
pkgrel=3
provides=('rusty-psn')
conflicts=('rusty-psn-bin')
pkgdesc='A GUI/CLI tool for downloading PS3 and PS4 game updates'
url='https://github.com/RainbowCookie32/rusty-psn'
arch=('x86_64')
makedepends=('cargo' 'rust' 'pkgconf' 'git')
depends=('openssl' 'perl')
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
}
package() {
cd "$_pkgname"
install -Dm755 "${CARGO_TARGET_DIR:-target}/release/rusty-psn" "$pkgdir/usr/bin/rusty-psn"
}
|