# Contributor: Jakub Jirutka # Maintainer: Jakub Jirutka pkgname=libx86emu pkgver=2.6 pkgrel=0 pkgdesc="x86 emulation library" url="https://github.com/wfeldt/libx86emu" arch="all" license="MIT" subpackages="$pkgname-dev" source="$pkgname-$pkgver.tar.gz::https://github.com/wfeldt/libx86emu/archive/$pkgver.tar.gz" options="!check" # FIXME: test fails to build _flags="VERSION=$pkgver MAJOR_VERSION=${pkgver%%.*} GIT2LOG= LIBDIR=/usr/lib" build() { make shared $_flags CFLAGS="$CFLAGS -fPIC -Wall" } check() { make test $_flags CFLAGS="$CFLAGS -I../include" } package() { make $_flags DESTDIR="$pkgdir" install } sha512sums="67c87dc7ecc15f4422058c131eb08a062ba7ad35af2212bcb45df4837b7a91b17eb534778558ffbddb2322982d55835f7ab29eb5eed0d2a27f5f0f9b5eb4afd5 libx86emu-2.6.tar.gz"