# Contributor: Jakub Jirutka # Maintainer: Jakub Jirutka pkgname=libx86emu pkgver=2.3 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/$pkgname/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="a8dd46002c1a0680036eaab5c7b10e624235b35ffde0bcfba0238d61ae8e0c8dca9abdc167fbfc84efba64204891c01b99385d9b48e8e9dcbc1269fbd3311d22 libx86emu-2.3.tar.gz"