[arch-commits] Commit in lib32-libepoxy/trunk (PKGBUILD)

Maxime Gauduin alucryd at archlinux.org
Sat Mar 11 20:57:12 UTC 2017


    Date: Saturday, March 11, 2017 @ 20:57:12
  Author: alucryd
Revision: 215727

upgpkg: lib32-libepoxy 1.4.1-1

Modified:
  lib32-libepoxy/trunk/PKGBUILD

----------+
 PKGBUILD |   35 ++++++++++++++++++++++++-----------
 1 file changed, 24 insertions(+), 11 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-03-11 20:43:17 UTC (rev 215726)
+++ PKGBUILD	2017-03-11 20:57:12 UTC (rev 215727)
@@ -3,33 +3,46 @@
 # Contributor: Laurent Carlier <lordheavym at gmail.com>
 
 pkgname=lib32-libepoxy
-pkgver=1.3.1
-pkgrel=3
-pkgdesc='A library for handling OpenGL function pointer management for you'
+pkgver=1.4.1
+pkgrel=1
+pkgdesc='Library handling OpenGL function pointer management'
 arch=('x86_64')
 url='https://github.com/anholt/libepoxy'
 license=('MIT')
 depends=('lib32-glibc')
-makedepends=('gcc-multilib' 'lib32-libgl' 'python' 'xorg-util-macros')
-source=("https://github.com/anholt/libepoxy/releases/download/v${pkgver}/libepoxy-${pkgver}.tar.bz2")
-sha256sums=('1d8668b0a259c709899e1c4bab62d756d9002d546ce4f59c9665e2fc5f001a64')
+makedepends=('gcc-multilib' 'lib32-libgl' 'meson' 'python')
+source=("https://github.com/anholt/libepoxy/releases/download/${pkgver}/libepoxy-${pkgver}.tar.xz")
+sha256sums=('88c6abf5522fc29bab7d6c555fd51a855cbd9253c4315f8ea44e832baef21aa6')
 
-build() {
+prepare() {
   cd libepoxy-${pkgver}
 
+  if [[ -d build ]]; then
+    rm -rf build
+  fi
+  mkdir build
+}
+
+build() {
+  cd libepoxy-${pkgver}/build
+
   export CC='gcc -m32'
   export CXX='/bin/false'
   export PKG_CONFIG_PATH='/usr/lib32/pkgconfig'
+  export LANG='en_US.UTF-8'
 
-  ./configure \
+  meson \
     --prefix='/usr' \
-    --libdir='/usr/lib32'
+    --libdir='/usr/lib32' \
+    --buildtype='release' \
+    ..
+  ninja
 }
 
 package() {
-  cd libepoxy-${pkgver}
+  cd libepoxy-${pkgver}/build
 
-  make DESTDIR="${pkgdir}" install
+  DESTDIR="${pkgdir}" ninja install
   rm -rf "${pkgdir}"/usr/include
 
   install -dm 755 "${pkgdir}"/usr/share/licenses



More information about the arch-commits mailing list