[arch-commits] Commit in gnu-efi-libs/repos (4 files)

Tobias Powalowski tpowa at archlinux.org
Wed Sep 26 06:30:47 UTC 2012


    Date: Wednesday, September 26, 2012 @ 02:30:46
  Author: tpowa
Revision: 167140

archrelease: copy trunk to extra-i686, extra-x86_64

Added:
  gnu-efi-libs/repos/extra-i686/
  gnu-efi-libs/repos/extra-i686/PKGBUILD
    (from rev 167139, gnu-efi-libs/trunk/PKGBUILD)
  gnu-efi-libs/repos/extra-x86_64/
  gnu-efi-libs/repos/extra-x86_64/PKGBUILD
    (from rev 167139, gnu-efi-libs/trunk/PKGBUILD)

-----------------------+
 extra-i686/PKGBUILD   |   75 ++++++++++++++++++++++++++++++++++++++++++++++++
 extra-x86_64/PKGBUILD |   75 ++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 150 insertions(+)

Copied: gnu-efi-libs/repos/extra-i686/PKGBUILD (from rev 167139, gnu-efi-libs/trunk/PKGBUILD)
===================================================================
--- extra-i686/PKGBUILD	                        (rev 0)
+++ extra-i686/PKGBUILD	2012-09-26 06:30:46 UTC (rev 167140)
@@ -0,0 +1,75 @@
+# $Id$
+# Maintainer: Tobias Powalowski <tpowa at archlinux.org>
+# Maintainer : Keshav P R <(the.ridikulus.rat) (aatt) (gemmaeiil) (ddoott) (ccoomm)>
+# Contributor: Alessio 'mOLOk' Bolognino <themolok at gmail.com>
+
+_pkgver="3.0"
+pkgname="gnu-efi-libs"
+pkgver="${_pkgver}q"
+pkgrel="1"
+pkgdesc="Library for building x86_64 and i386 UEFI Applications using GNU toolchain"
+url="http://sourceforge.net/projects/gnu-efi/"
+license=('GPL')
+arch=('i686' 'x86_64')
+makedepends=('pciutils')
+if [[ "${CARCH}" == "x86_64" ]]; then
+	makedepends+=('lib32-glibc')
+fi
+conflicts=('gnu-efi')
+provides=('gnu-efi')
+replaces=('gnu-efi')
+options=('!strip' '!makeflags')
+source=("http://download.sourceforge.net/gnu-efi/gnu-efi_${pkgver}.orig.tar.gz")
+sha1sums=('99d29be5fd17dfca762cf0e265477862c21d63bb')
+
+_build_gnu-efi-libs-x86_64() {	
+	cp -r "${srcdir}/gnu-efi-${_pkgver}" "${srcdir}/gnu-efi-${_pkgver}-x86_64"
+	cd "${srcdir}/gnu-efi-${_pkgver}-x86_64/"
+	ARCH="x86_64" make
+	ARCH="x86_64" make -C apps all	
+}
+
+_build_gnu-efi-libs-i386() {
+	cp -r "${srcdir}/gnu-efi-${_pkgver}" "${srcdir}/gnu-efi-${_pkgver}-i386"
+	cd "${srcdir}/gnu-efi-${_pkgver}-i386/"	
+	ARCH="ia32" make
+	ARCH="ia32" make -C apps all	
+}
+
+build() {	
+	## Fix Makefiles to enable compile for both UEFI arch
+	sed 's|INSTALLROOT=/usr/local|INSTALLROOT ?= /usr/lib|g' -i "${srcdir}/gnu-efi-${_pkgver}/Make.defaults"
+	sed 's|LIBDIR=lib|LIBDIR ?= lib|g' -i "${srcdir}/gnu-efi-${_pkgver}/Make.defaults"
+	sed 's|ARCH	   :=|ARCH	   ?=|g' -i "${srcdir}/gnu-efi-${_pkgver}/Make.defaults"
+	sed 's|-fno-strict-aliasing|-fno-strict-aliasing -fno-stack-protector|g' -i "${srcdir}/gnu-efi-${_pkgver}/Make.defaults"
+	if [[ "${CARCH}" == "x86_64" ]]; then
+		_build_gnu-efi-libs-x86_64
+	fi
+	_build_gnu-efi-libs-i386	
+}
+
+_package_gnu-efi-libs-x86_64() {
+	cd "${srcdir}/gnu-efi-${_pkgver}-x86_64/"	
+	make ARCH="x86_64" INSTALLROOT="${pkgdir}/usr/" LIBDIR="lib" install
+	install -d "${pkgdir}/usr/share/gnu-efi/x86_64/"
+	install -D -m0644 "${srcdir}/gnu-efi-${_pkgver}-x86_64/apps"/*.efi "${pkgdir}/usr/share/gnu-efi/x86_64/"
+}
+
+_package_gnu-efi-libs-i386() {	
+	cd "${srcdir}/gnu-efi-${_pkgver}-i386/"
+	make ARCH="ia32" INSTALLROOT="${pkgdir}/usr/" LIBDIR="${_LIBDIR32}" install
+	install -d "${pkgdir}/usr/share/gnu-efi/i386/"
+	install -D -m0644 "${srcdir}/gnu-efi-${_pkgver}-i386/apps"/*.efi "${pkgdir}/usr/share/gnu-efi/i386/"	
+}
+
+package() {
+	if [[ "${CARCH}" == "x86_64" ]]; then
+		_package_gnu-efi-libs-x86_64
+		
+		_LIBDIR32="lib32"
+		_package_gnu-efi-libs-i386
+	else
+		_LIBDIR32="lib"
+		_package_gnu-efi-libs-i386
+	fi	
+}

Copied: gnu-efi-libs/repos/extra-x86_64/PKGBUILD (from rev 167139, gnu-efi-libs/trunk/PKGBUILD)
===================================================================
--- extra-x86_64/PKGBUILD	                        (rev 0)
+++ extra-x86_64/PKGBUILD	2012-09-26 06:30:46 UTC (rev 167140)
@@ -0,0 +1,75 @@
+# $Id$
+# Maintainer: Tobias Powalowski <tpowa at archlinux.org>
+# Maintainer : Keshav P R <(the.ridikulus.rat) (aatt) (gemmaeiil) (ddoott) (ccoomm)>
+# Contributor: Alessio 'mOLOk' Bolognino <themolok at gmail.com>
+
+_pkgver="3.0"
+pkgname="gnu-efi-libs"
+pkgver="${_pkgver}q"
+pkgrel="1"
+pkgdesc="Library for building x86_64 and i386 UEFI Applications using GNU toolchain"
+url="http://sourceforge.net/projects/gnu-efi/"
+license=('GPL')
+arch=('i686' 'x86_64')
+makedepends=('pciutils')
+if [[ "${CARCH}" == "x86_64" ]]; then
+	makedepends+=('lib32-glibc')
+fi
+conflicts=('gnu-efi')
+provides=('gnu-efi')
+replaces=('gnu-efi')
+options=('!strip' '!makeflags')
+source=("http://download.sourceforge.net/gnu-efi/gnu-efi_${pkgver}.orig.tar.gz")
+sha1sums=('99d29be5fd17dfca762cf0e265477862c21d63bb')
+
+_build_gnu-efi-libs-x86_64() {	
+	cp -r "${srcdir}/gnu-efi-${_pkgver}" "${srcdir}/gnu-efi-${_pkgver}-x86_64"
+	cd "${srcdir}/gnu-efi-${_pkgver}-x86_64/"
+	ARCH="x86_64" make
+	ARCH="x86_64" make -C apps all	
+}
+
+_build_gnu-efi-libs-i386() {
+	cp -r "${srcdir}/gnu-efi-${_pkgver}" "${srcdir}/gnu-efi-${_pkgver}-i386"
+	cd "${srcdir}/gnu-efi-${_pkgver}-i386/"	
+	ARCH="ia32" make
+	ARCH="ia32" make -C apps all	
+}
+
+build() {	
+	## Fix Makefiles to enable compile for both UEFI arch
+	sed 's|INSTALLROOT=/usr/local|INSTALLROOT ?= /usr/lib|g' -i "${srcdir}/gnu-efi-${_pkgver}/Make.defaults"
+	sed 's|LIBDIR=lib|LIBDIR ?= lib|g' -i "${srcdir}/gnu-efi-${_pkgver}/Make.defaults"
+	sed 's|ARCH	   :=|ARCH	   ?=|g' -i "${srcdir}/gnu-efi-${_pkgver}/Make.defaults"
+	sed 's|-fno-strict-aliasing|-fno-strict-aliasing -fno-stack-protector|g' -i "${srcdir}/gnu-efi-${_pkgver}/Make.defaults"
+	if [[ "${CARCH}" == "x86_64" ]]; then
+		_build_gnu-efi-libs-x86_64
+	fi
+	_build_gnu-efi-libs-i386	
+}
+
+_package_gnu-efi-libs-x86_64() {
+	cd "${srcdir}/gnu-efi-${_pkgver}-x86_64/"	
+	make ARCH="x86_64" INSTALLROOT="${pkgdir}/usr/" LIBDIR="lib" install
+	install -d "${pkgdir}/usr/share/gnu-efi/x86_64/"
+	install -D -m0644 "${srcdir}/gnu-efi-${_pkgver}-x86_64/apps"/*.efi "${pkgdir}/usr/share/gnu-efi/x86_64/"
+}
+
+_package_gnu-efi-libs-i386() {	
+	cd "${srcdir}/gnu-efi-${_pkgver}-i386/"
+	make ARCH="ia32" INSTALLROOT="${pkgdir}/usr/" LIBDIR="${_LIBDIR32}" install
+	install -d "${pkgdir}/usr/share/gnu-efi/i386/"
+	install -D -m0644 "${srcdir}/gnu-efi-${_pkgver}-i386/apps"/*.efi "${pkgdir}/usr/share/gnu-efi/i386/"	
+}
+
+package() {
+	if [[ "${CARCH}" == "x86_64" ]]; then
+		_package_gnu-efi-libs-x86_64
+		
+		_LIBDIR32="lib32"
+		_package_gnu-efi-libs-i386
+	else
+		_LIBDIR32="lib"
+		_package_gnu-efi-libs-i386
+	fi	
+}




More information about the arch-commits mailing list