summaryrefslogtreecommitdiff
path: root/user/opensfx/APKBUILD
blob: cf52e2a847a12e4836ca1111a7ccbd00d97d1228 (plain) (blame)
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
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=opensfx
pkgver=1.0.3
pkgrel=0
pkgdesc="Sound files for OpenTTD"
url="https://www.openttd.org/"
arch="noarch"
options="!check"  # Fails md5sum check because of git hash.
license="CC-Sampling-Plus-1.0"
depends=""
makedepends="catcodec"
subpackages=""
source="https://cdn.openttd.org/$pkgname-releases/$pkgver/$pkgname-$pkgver-source.tar.xz"
builddir="$srcdir/$pkgname-$pkgver-source"

build() {
	make opensfx.cat
}

check() {
	make check
}

package() {
	install -D -m644 -g games "$builddir"/opensfx.cat \
		"$pkgdir"/usr/share/games/openttd/data/opensfx.cat
	install -D -m644 -g games "$builddir"/opensfx.obs \
		"$pkgdir"/usr/share/games/openttd/data/opensfx.obs
}

sha512sums="a077fcb1676ba17aa5e9e2df32c2d69452fe54895e3ac64a80c2a6247aa3ea2ef37443e2391f88117768eeb3f808793c78c11727c69bb3df2fde57f67964dbff  opensfx-1.0.3-source.tar.xz"