diff options
author | Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com> | 2019-03-23 18:34:23 -0500 |
---|---|---|
committer | Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com> | 2019-03-23 19:36:23 -0500 |
commit | 0d18616ef52a71ceb934dadf8ad44a72ac5ee72e (patch) | |
tree | 4dd0cb390eaf11b262401c52ba2af397b16ef7e6 | |
parent | a332bdfc215f4d29551ac3b7744a4794aae3757a (diff) | |
download | packages-0d18616ef52a71ceb934dadf8ad44a72ac5ee72e.tar.gz packages-0d18616ef52a71ceb934dadf8ad44a72ac5ee72e.tar.bz2 packages-0d18616ef52a71ceb934dadf8ad44a72ac5ee72e.tar.xz packages-0d18616ef52a71ceb934dadf8ad44a72ac5ee72e.zip |
user/xorg-gtest: new package
-rw-r--r-- | user/xorg-gtest/APKBUILD | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/user/xorg-gtest/APKBUILD b/user/xorg-gtest/APKBUILD new file mode 100644 index 000000000..4b2567f0c --- /dev/null +++ b/user/xorg-gtest/APKBUILD @@ -0,0 +1,48 @@ +# Contributor: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com> +# Maintainer: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com> +pkgname=xorg-gtest +pkgver=0.7.1 +pkgrel=0 +pkgdesc="X extensions to googletest" +url="https://gitlab.freedesktop.org/xorg/test/xorg-gtest" +arch="all" +options="!check" # tests require X +license="MIT AND BSD-3-Clause" +depends="" +makedepends="libx11-dev libxi-dev util-macros xorg-server-dev xf86-video-dummy" +subpackages="$pkgname-dev" +source="https://gitlab.freedesktop.org/xorg/test/xorg-gtest/-/archive/xorg-gtest-$pkgver/xorg-gtest-xorg-gtest-$pkgver.tar.bz2" +builddir="$srcdir"/$pkgname-$pkgname-$pkgver + +prepare() { + cd "$builddir" + default_prepare + ./autogen.sh +} + +build() { + cd "$builddir" + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --localstatedir=/var + make +} + +check() { + cd "$builddir" + make check +} + +package() { + cd "$builddir" + DESTDIR="$pkgdir" make install + for i in gtest gtest-spi; do + rm "$pkgdir"/usr/include/gtest/"$i".h + done +} + +sha512sums="100746225dd6b24f030893da7b960c2f2562fa9f5d02ee7fca3eb99c40e3ae17d408d5e3c4e99e05e3767984d48648d5a42473a9922d699cf1281290af1eb86c xorg-gtest-xorg-gtest-0.7.1.tar.bz2" |