[arch-commits] Commit in beignet/trunk (PKGBUILD)
Bruno Pagani
archange at archlinux.org
Thu Apr 16 01:18:36 UTC 2020
Date: Thursday, April 16, 2020 @ 01:18:35
Author: archange
Revision: 615111
Some PKGBUILD linting
Modified:
beignet/trunk/PKGBUILD
----------+
PKGBUILD | 31 ++++++++++++++++---------------
1 file changed, 16 insertions(+), 15 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-04-16 01:17:50 UTC (rev 615110)
+++ PKGBUILD 2020-04-16 01:18:35 UTC (rev 615111)
@@ -15,17 +15,20 @@
provides=(opencl-intel opencl-driver)
conflicts=(opencl-intel)
_commit=fc5f430cb7b7a8f694d86acbb038bd5b38ec389c # master as of 2018-08-20
-source=("git+https://anongit.freedesktop.org/git/beignet.git#commit=$_commit"
- 'llvm8.patch'
- 'llvm9.patch'
- 'llvm10.patch')
-sha256sums=('SKIP'
- 'd24e4d8a1a791dc02c91117f900143789dd6f01eaa89292ad67c4fb4eaf84328'
- '5913a93fe6ef77b91480bb6d27c7875673294c0a8a924b2ac66756d0d3577908'
- '2eb9b0801e24f4e537033b41a6bc462e4082f6216d62933240ca3010020ea779')
+source=(
+ "git+https://anongit.freedesktop.org/git/beignet.git#commit=$_commit"
+ llvm8.patch
+ llvm9.patch
+ llvm10.patch
+)
+sha256sums=(
+ SKIP
+ d24e4d8a1a791dc02c91117f900143789dd6f01eaa89292ad67c4fb4eaf84328
+ 5913a93fe6ef77b91480bb6d27c7875673294c0a8a924b2ac66756d0d3577908
+ 2eb9b0801e24f4e537033b41a6bc462e4082f6216d62933240ca3010020ea779
+)
prepare() {
- mkdir -p build
cd ${pkgname}
# Remove implementation of cl_intel_device_side_avc_motion_estimation
@@ -42,18 +45,16 @@
}
build() {
- cd build
- cmake ../${pkgname} \
+ cmake -B build -S ${pkgname} \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=/usr/lib \
-DCMAKE_BUILD_TYPE=RELEASE
- make
+ make -C build
}
package() {
- cd build
- make DESTDIR="${pkgdir}" install
+ make -C build DESTDIR="${pkgdir}" install
# Remove headers already provided by 'opencl-headers'
- cd "${pkgdir}/usr/include/CL"
+ cd "${pkgdir}"/usr/include/CL
rm cl.h cl_egl.h cl_ext.h cl_gl.h cl_gl_ext.h cl_platform.h opencl.h
}
More information about the arch-commits
mailing list