diff options
author | Chad Versace <chad.versace@linux.intel.com> | 2012-08-23 07:48:47 -0700 |
---|---|---|
committer | Chad Versace <chad.versace@linux.intel.com> | 2012-08-23 10:31:21 -0700 |
commit | 1d85dae1075661088009be8004caa06bac3bd626 (patch) | |
tree | 7543db19c0627ddb40ac4aab7b627c1a52f4c888 /pkg | |
parent | e725d3ac254f79ed7ddb95c879181b8f8f3792c1 (diff) |
pkg/archlinux: Add PKGBUILD
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/CMakeLists.txt | 1 | ||||
-rw-r--r-- | pkg/archlinux/.gitignore | 1 | ||||
-rw-r--r-- | pkg/archlinux/CMakeLists.txt | 3 | ||||
-rw-r--r-- | pkg/archlinux/PKGBUILD.in | 44 |
4 files changed, 49 insertions, 0 deletions
diff --git a/pkg/CMakeLists.txt b/pkg/CMakeLists.txt new file mode 100644 index 0000000..36a2f0e --- /dev/null +++ b/pkg/CMakeLists.txt @@ -0,0 +1 @@ +add_subdirectory(archlinux) diff --git a/pkg/archlinux/.gitignore b/pkg/archlinux/.gitignore new file mode 100644 index 0000000..670e123 --- /dev/null +++ b/pkg/archlinux/.gitignore @@ -0,0 +1 @@ +PKGBUILD diff --git a/pkg/archlinux/CMakeLists.txt b/pkg/archlinux/CMakeLists.txt new file mode 100644 index 0000000..00f9633 --- /dev/null +++ b/pkg/archlinux/CMakeLists.txt @@ -0,0 +1,3 @@ +configure_file(PKGBUILD.in + ${CMAKE_CURRENT_SOURCE_DIR}/PKGBUILD + @ONLY) diff --git a/pkg/archlinux/PKGBUILD.in b/pkg/archlinux/PKGBUILD.in new file mode 100644 index 0000000..54b724b --- /dev/null +++ b/pkg/archlinux/PKGBUILD.in @@ -0,0 +1,44 @@ +# Maintainer: Chad Versace <chad.versace@linux.intel.com> +pkgname='waffle-@waffle_major_version@' +pkgver='@waffle_minor_version@.@waffle_patch_version@' +pkgrel=1 +pkgdesc='a library for choosing window system and OpenGL API at runtime' +arch=('i686' 'x86_64') +url='http://people.freedesktop.org/~chadversary/waffle' +license=('BSD') + +depends=( + 'libgl' # for GLX + 'libegl' + 'libx11' + 'libxcb' + ) +makedepends=( + 'cmake' + 'xcb-proto' + ) +source=("http://people.freedesktop.org/~chadversary/waffle/files/release/$pkgname.$pkgver/$pkgname.$pkgver.tar.xz") +sha256sums=('TODO') + +build() { + cd "$srcdir/$pkgname.$pkgver" + + cmake \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -Dwaffle_has_glx=1 \ + -Dwaffle_has_x11_egl=1 \ + -Dwaffle_has_wayland=0 \ + -Dwaffle_build_examples=0 + make +} + +package() { + cd "$srcdir/$pkgname.$pkgver" + make DESTDIR="$pkgdir/" install + install -m755 -d "$pkgdir/usr/share/licenses/$pkgname" + install -m644 "$pkgdir/usr/share/doc/waffle-@waffle_major_version@/LICENSE.txt" \ + "$pkgdir/usr/share/licenses/waffle-@waffle_major_version@/LICENSE.txt" +} + +# vim:set ts=2 sw=2 et: |