diff options
author | LW-archlinux | 2019-05-12 15:34:46 +0200 |
---|---|---|
committer | LW-archlinux | 2019-05-12 15:34:46 +0200 |
commit | 8f42f3a189b3342e580093ec8341d814019c605a (patch) | |
tree | 0b791526277f7b8d4252a05b1a2d04aa88c53602 /PKGBUILD | |
parent | 6c6ae675836e6008ace8ef5c3ca102a455b6fa67 (diff) | |
download | aur-8f42f3a189b3342e580093ec8341d814019c605a.tar.gz |
moved removal of _build folder to prepare()
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -11,7 +11,7 @@ pkgname=(lib32-mesa-git) pkgdesc="an open-source implementation of the OpenGL specification, git version" -pkgver=19.2.0_devel.110857.8b3baa27440 +pkgver=19.2.0_devel.110903.974c4d679c2 pkgrel=1 arch=('x86_64') makedepends=('python-mako' 'lib32-libxml2' 'lib32-libx11' 'xorgproto' @@ -79,14 +79,18 @@ pkgver() { echo ${_ver/-/_}.$(git rev-list --count HEAD).$(git rev-parse --short HEAD) } +prepare() { + # although removing _build folder in build() function feels more natural, + # that interferes with the spirit of makepkg --noextract + if [ -d _build ]; then + rm -rf _build + fi +} build () { export CC="gcc -m32" export CXX="g++ -m32" export PKG_CONFIG=/usr/bin/pkg-config-32 - if [ -d _build ]; then - rm -rf _build - fi meson setup mesa _build \ --native-file llvm32.native \ -D b_ndebug=true \ |