# Maintainer: Autumn Boyhan pkgname=naikari pkgver=0.12.0 pkgrel=1 pkgdesc="Freeform 2-D space trading and mercenary game." arch=('amd64') url="https://naikari.github.io/" license=('GPL3') depends=('meson' 'ninja-build' 'libsdl2-2.0-0' 'libsdl2-image-2.0-0' 'libgl1' 'libxml2' 'libfreetype6' 'libpng16-16' 'libwebp7' 'libopenal1' 'libvorbis0a' 'libbinutils' 'libfontconfig1' 'libluajit-5.1-2' 'libcxsparse3' 'libphysfs1') makedepends=('libsdl2-dev' 'libsdl2-image-dev' 'libgl1-mesa-dev' 'libxml2-dev' 'libfreetype6-dev' 'libpng-dev' 'libwebp-dev' 'libopenal-dev' 'libvorbis-dev' 'binutils-dev' 'libiberty-dev' 'autopoint' 'intltool' 'libfontconfig-dev' 'python3-pip' 'libluajit-5.1-dev' 'libphysfs-dev' 'libsuitesparse-dev') provides=('naikari') conflicts=('naikari' 'naikari-git') source=("https://github.com/naikari/naikari/releases/download/v${pkgver}/${pkgname}-${pkgver}-source.tar.xz") sha256sums=('6c31ec1e2cad8764f0aad7b2ae6988d1baed8f2d6fb84f06feb820bd6e319557') prepare() { mv ${srcdir}/${pkgname}-${pkgver} ${srcdir}/${pkgname} } build() { cd ${srcdir}/${pkgname} meson setup build . cd build meson configure --buildtype=release -Db_lto=true --prefix=/usr meson compile } package() { cd ${srcdir}/${pkgname} DESTDIR=${pkgdir} meson install -C build install -D LICENSE -t ${pkgdir}/usr/share/licenses/${pkgname} }