blob: 14e4d1e50551e8162530e7c2ce21f2a36cd83562 (
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
|
# Maintainer: Kirill Zhumarin <kirill.zhumarin@gmail.com>
pkgname=ra-pixelart-scale-git
pkgver=v0.1.0.r7.gff322b1
pkgrel=1
pkgdesc='Scale PixelArt images using RetroArch shaders.'
arch=(any)
url='https://github.com/Azq2/ra-pixelart-scale'
license=(GPL-3.0)
depends=()
makedepends=(cargo-nightly)
source=(git+https://github.com/Azq2/ra-pixelart-scale)
sha256sums=('SKIP')
options=(!lto)
prepare() {
cd "ra-pixelart-scale"
export RUSTUP_TOOLCHAIN=nightly
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
git submodule init
git submodule update
}
build() {
cd "ra-pixelart-scale"
export RUSTUP_TOOLCHAIN=nightly
export CARGO_TARGET_DIR=target
cargo build --frozen --release
}
package() {
cd "ra-pixelart-scale"
install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/ra-pixelart-scale"
mkdir -p "$pkgdir/usr/share/ra-pixelart-scale/"
cp -r shaders/ "$pkgdir/usr/share/ra-pixelart-scale/shaders/"
}
pkgver() {
cd "ra-pixelart-scale"
git describe --long --tags --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
|