blob: 1d01295a556603019e1486d1de2b1a565c425524 (
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# Maintainer: dreieck
# Contributor: jason ryan <jasonwryan@gmail.com>
# Submaintainer : bartus <arch-user-repoᘓbartus.33mail.com>
_pkgname=v86d
pkgname="${_pkgname}"
pkgver=0.1.10
pkgrel=13
pkgdesc="userspace helper for uvesafb that runs x86 code in an emulated environment."
arch=('i686' 'x86_64')
url="https://github.com/mjanusz/v86d"
license=('GPL2')
depends=('glibc')
makedepends=('git')
optdepends=(
"uvesafb-dkms: For uvesafb kernel module, the ownly known thing that makes use of '${_pkgname}'."
"UVESAFB-MODULE: For uvesafb kernel module, the ownly known thing that makes use of '${_pkgname}'."
)
options=('!makeflags')
source=(
"${_pkgname}::git+https://github.com/mjanusz/v86d.git#tag=${pkgname}-${pkgver}"
)
sha256sums=(
'SKIP'
)
build() {
_FIXWERROR="-Wno-error=implicit-function-declaration"
CFLAGS+=" ${_FIXWERROR}"
CXXFLAGS+=" ${_FIXWERROR}"
export CFLAGS
export CXXFLAGS
cd "${srcdir}/${_pkgname}"
./configure --with-x86emu
# we only need /usr/include/video/uvesafb.h
make KDIR=/usr
}
package() {
cd "${srcdir}/${_pkgname}"
make DESTDIR="${pkgdir}" install
install -D -v -m644 "${srcdir}/${_pkgname}/README" "${pkgdir}/usr/share/doc/${_pkgname}/README"
install -D -v -m644 "${srcdir}/${_pkgname}/TODO" "${pkgdir}/usr/share/doc/${_pkgname}/TODO"
# usrmove
cd "${pkgdir}"
mv -v sbin usr/bin
}
|