[arch-commits] Commit in intel-graphics-compiler/trunk (PKGBUILD)
Bruno Pagani
archange at archlinux.org
Wed Oct 16 13:13:21 UTC 2019
Date: Wednesday, October 16, 2019 @ 13:13:20
Author: archange
Revision: 516325
Simplify PKGBUILD
Modified:
intel-graphics-compiler/trunk/PKGBUILD
----------+
PKGBUILD | 12 +++++-------
1 file changed, 5 insertions(+), 7 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-10-16 09:21:53 UTC (rev 516324)
+++ PKGBUILD 2019-10-16 13:13:20 UTC (rev 516325)
@@ -11,25 +11,23 @@
license=(MIT)
depends=(llvm-libs intel-opencl-clang)
makedepends=(cmake clang llvm zlib python)
-options=('!emptydirs')
+options=(!emptydirs)
source=("${url}/archive/igc-${pkgver}.tar.gz"
- "igc-${pkgver}-build-fix.patch"::'https://github.com/intel/intel-graphics-compiler/commit/028414b376d12d7d6fbb4939bca2a31a02b6a18f.patch')
-noextract=("igc-${pkgver}.tar.gz")
+ igc-${pkgver}-build-fix.patch::"${url}/commit/028414b376d12d7d6fbb4939bca2a31a02b6a18f.patch")
sha256sums=('32aa20abe6dbc66dbeffc86aab0db96420b12eb93aec28ad2c98da9f93c1189f'
'f3ded012337547f730a162596c701f902ec156c69f1949f7ae0f9cd0d6b2e5a7')
prepare() {
- mkdir -p build ${pkgname}-${pkgver}
- bsdtar xf igc-${pkgver}.tar.gz -C ${pkgname}-${pkgver} --strip-components='1'
+ mkdir -p build
# fix build error
# https://github.com/intel/intel-graphics-compiler/issues/112
- patch -d "${pkgname}-${pkgver}" -Np1 -i "${srcdir}/igc-${pkgver}-build-fix.patch"
+ patch -d ${pkgname}-igc-${pkgver} -Np1 -i ../igc-${pkgver}-build-fix.patch
}
build() {
cd build
- cmake ../"${pkgname}-${pkgver}" \
+ cmake ../${pkgname}-igc-${pkgver} \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
More information about the arch-commits
mailing list