pmaports/device/device-qemu-amd64/APKBUILD
Oliver Smith 8d2a1a417d Automatically install X11 and mesa dependencies (using install_if) (#696)
* device-qemu-amd64: subpackages for x11 and mesa
* postmarketos-base: add x11 subpackage
2017-10-06 18:19:47 +00:00

34 lines
939 B
Text

pkgname=device-qemu-amd64
pkgver=1
pkgrel=6
pkgdesc="Simulated device in qemu with an x86 platform"
url="https://github.com/postmarketOS"
arch="noarch"
license="MIT"
depends="linux-postmarketos"
makedepends=""
subpackages="$pkgname-mesa $pkgname-x11"
source="deviceinfo interfaces"
options="!check"
package() {
install -D -m644 "$srcdir"/deviceinfo \
"$pkgdir"/etc/deviceinfo
install -D -m644 "$srcdir"/interfaces \
"$pkgdir"/etc/network/interfaces
}
mesa() {
install_if="$pkgname mesa-glapi"
depends="mesa-dri-swrast"
mkdir "$subpkgdir"
}
x11() {
install_if="$pkgname xorg-server"
depends="xf86-video-qxl"
mkdir "$subpkgdir"
}
sha512sums="511fe8d2f1e4cf90d96a321568220ecf98bffd44b96339b200633a4f3c45b6b58e646c0971f82fbcd9829e4b66e62942a6ecc55ea03dd228ab76984b0ff0b92d deviceinfo
d510ca304066840aa5e6c4fc71ded1b7e83012c93837fa39e37bdb873b3636230030d56f7aa50c93fc688f563cb4cb96c02ad333bbc45a400c1ebee1792a9dd4 interfaces"