# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=catcodec
pkgver=1.0.5
pkgrel=0
pkgdesc="Encode and decode sound sample catalogues for OpenTTD"
url="https://www.openttd.org/en/"
arch="all"
options="!check"  # No test suite.
license="GPL-2.0-only"
depends=""
makedepends=""
subpackages="$pkgname-doc"
source="https://binaries.openttd.org/extra/catcodec/1.0.5/catcodec-$pkgver-source.tar.xz"

build() {
	make
}

package() {
	make prefix=/usr DESTDIR="$pkgdir" install
}

sha512sums="e6e17da17f2449ff5d3a18c34ba3125d475a481ef1dc73ba03dac32fc8523a8929d2cbdfda5f647a0226aa007a217fc90c85ec4cc46937f75e15a596277e0db5  catcodec-1.0.5-source.tar.xz"