summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 228be8d87f20c3ba52a09fac5cc6bfb2408f94cf (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
# Maintainer: Alexandre Bouvier <contact@amb.tf>
_pkgname=retroarch-assets
pkgname=$_pkgname-git
pkgver=1.17.0.r4.g912f65274
pkgrel=1
pkgdesc="Assets needed for RetroArch"
arch=('any')
url="https://github.com/libretro/retroarch-assets"
license=('CC-BY-4.0')
groups=('libretro')
makedepends=('git')
optdepends=('retroarch')
provides=("$_pkgname" retroarch-assets-{glui,ozone,xmb})
conflicts=("$_pkgname")
options=('!strip')
source=("$_pkgname::git+$url.git")
b2sums=('SKIP')

pkgver() {
	cd $_pkgname
	git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

package() {
	cd $_pkgname
	# shellcheck disable=SC2154
	install -d "$pkgdir"/usr/share/libretro/assets
	cp -dr --no-preserve=ownership -t "$pkgdir"/usr/share/libretro/assets \
		branding \
		ctr \
		glui \
		menu_widgets \
		nxrgui \
		ozone \
		pkg \
		rgui \
		sounds \
		switch \
		wallpapers \
		xmb
}