blob: 97173f53c4e6d8f109c8996c79a81d87d9409c6b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=libx86emu
pkgver=1.14
pkgrel=0
pkgdesc="x86 emulation library"
url="https://github.com/wfeldt/libx86emu"
arch="all"
license="BSD"
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/wfeldt/$pkgname/archive/$pkgver.tar.gz
ldflags.patch"
builddir="$srcdir/libx86emu-$pkgver"
options="!check" # FIXME: test fails to build
_flags="VERSION=$pkgver MAJOR_VERSION=${pkgver%%.*} GIT2LOG= LIBDIR=/usr/lib"
build() {
cd "$builddir"
make shared $_flags CFLAGS="$CFLAGS -fPIC -Wall"
}
check() {
cd "$builddir"
make test $_flags CFLAGS="$CFLAGS -I../include"
}
package() {
cd "$builddir"
make $_flags DESTDIR="$pkgdir" install
}
sha512sums="405fd1355a0e829a0e9cfb80a7f03f9f803beff3a7969c847314617d0d0d3b76289ae1a406c1a11b0877fbdd033189db1c2479e89c1a5bccc821596a0f8bd178 libx86emu-1.14.tar.gz
87edc4f5bc3810a3faabe121f77f31ca503f867236a0dd3b924dd4fe7ebd1da5d49f01b90b192102161dd209c765a30ec3fb10ff658470bdd113707f702267bc ldflags.patch"
|