From 102a2cb2d8156734e60ae79187b324a321054fae Mon Sep 17 00:00:00 2001 From: Robert Yang Date: Tue, 23 Oct 2018 17:29:08 -0400 Subject: [PATCH] New aport xf86-video-opentegra --- main/xf86-video-opentegra/APKBUILD | 45 ++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 main/xf86-video-opentegra/APKBUILD diff --git a/main/xf86-video-opentegra/APKBUILD b/main/xf86-video-opentegra/APKBUILD new file mode 100644 index 000000000..e739476d0 --- /dev/null +++ b/main/xf86-video-opentegra/APKBUILD @@ -0,0 +1,45 @@ +# Maintainer: Robert Yang +pkgname=xf86-video-opentegra +pkgver=0.6.0 +pkgrel=0 +pkgdesc="X.Org driver for NVIDIA tegra" +url="https://github.com/grate-driver/" +arch="armhf" +license="MIT" +subpackages="$pkgname-doc" +depends="libdrm-grate" +makedepends="libdrm-grate-dev xorg-server-dev xproto fontsproto util-macros + libtool m4 automake autoconf bison flex" +_commit=d94fb4fcdd670e58c17054299f1a22a31c418c00 +source="https://github.com/grate-driver/xf86-video-opentegra/archive/$_commit.tar.gz" +builddir="$srcdir"/$pkgname-$_commit + +prepare() { + cd "$builddir" + + export PKG_CONFIG_PATH="/usr/lib/pkgconfig/libdrm-grate:${PKG_CONFIG_PATH}" + export LDFLAGS="$LDFLAGS -Wl,-z,lazy" + + ./autogen.sh \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr +} + +build() { + cd "$builddir" + make +} + +check() { + cd "$builddir" + make check +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install + install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING +} + +sha512sums="a21ece35ffa39d744fc09ee5985cb22f5c58c256ce21fcce59345c5f54cba2482daaaff0a180db60024cac433cbbc0f1ca067257afd07ffc49e1d29fa6c746a3 d94fb4fcdd670e58c17054299f1a22a31c418c00.tar.gz"