# Compiling Time: 0.01 SBU
# Maintainer: James Buren <ryuo@frugalware.org>

pkgname=catcodec
pkgver=1.0.5
pkgextraver="-source"
pkgrel=2
pkgdesc="A utility for encoding and decoding the catalog files used by openttd."
url="https://www.openttd.org"
depends=('libstdc++')
groups=('apps-extra')
archs=('x86_64')
up2date="Flasttar https://www.openttd.org/downloads/catcodec-releases/latest.html"
source=(https://binaries.openttd.org/extra/$pkgname/$pkgver/$pkgname-$pkgver$pkgextraver.tar.xz)
sha1sums=('43edee779a5d3976ee0c578cee6a27f0a6a8f70c')
_F_cd_path="$pkgname-$pkgver"

build() {

	Fcd
	Fexec make VERBOSE=1 CXXFLAGS="$CXXFLAGS" || Fdie
	Fexerel /usr/bin/$pkgname
	Fmanrel docs/$pkgname.1
	Fdocrel docs/readme.txt
}

# optimization OK
