pmaports/main/xf86-video-opentegra/APKBUILD
2018-11-27 07:47:11 +01:00

45 lines
1.1 KiB
Text

# Maintainer: Robert Yang <decatf@gmail.com>
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"