summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorJean-Marc Lenoir2018-01-27 09:38:21 +0100
committerJean-Marc Lenoir2018-01-27 09:38:21 +0100
commitfe668f516f43539b74f8ba4e63ee1a148bb934b8 (patch)
tree38e9f0a827663046191590eb64d028caccd43a82 /PKGBUILD
parente5b164938e28a4f06fbef173563cd30833db8cda (diff)
downloadaur-fe668f516f43539b74f8ba4e63ee1a148bb934b8.tar.gz
Force GCC to use C++03 standard
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD25
1 files changed, 17 insertions, 8 deletions
diff --git a/PKGBUILD b/PKGBUILD
index b2ed756ed6c..8826e8e0503 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,28 +1,37 @@
-# Maintainer: Gavin Lloyd <gavinhungry@gmail.com>
+# Maintainer: Jean-Marc Lenoir <archlinux "at" jihemel "dot" com>
+# Contributor: Gavin Lloyd <gavinhungry@gmail.com>
-pkgname=vmware-component-extractor-git
+_pkgname=vmware-component-extractor
+pkgname=${_pkgname}-git
pkgver=0.2.b3b995a
-pkgrel=1
+pkgrel=2
pkgdesc="Extract VMware Tools ISO from component file"
arch=('i686' 'x86_64')
license=('custom')
url='https://github.com/17twenty/VMWare-Component-Extractor'
-depends=()
+provides=("$_pkgname=$pkgver")
+conflicts=("$_pkgname")
source=("${pkgname}::git+https://github.com/17twenty/VMWare-Component-Extractor#branch=master")
-md5sums=('SKIP')
+sha256sums=('SKIP')
pkgver () {
cd "${srcdir}/${pkgname}"
echo "0.$(git rev-list --count HEAD).$(git describe --always | sed 's|-|.|g')"
}
-build() {
+prepare() {
cd "${srcdir}/${pkgname}"
+ sed -i -e 's/\$(CXX)/\$(CXX) $(CXXFLAGS)/' Makefile
+}
+
+build()
+{
+ cd "${srcdir}/${pkgname}"
+ export CXXFLAGS="$CXXFLAGS -std=c++03"
make
}
package() {
cd "${srcdir}/${pkgname}"
- install -d "${pkgdir}"/usr/bin/
- install -m755 VMWareComponentExtractor "${pkgdir}"/usr/bin/
+ install -Dm 755 VMWareComponentExtractor "$pkgdir"/usr/bin/vmware-component-extractor
}