p8-platform: fix buld; xlint

This commit is contained in:
Jürgen Buchmüller 2021-01-23 22:39:15 +01:00
parent fdc87c604c
commit 2c812ece5e
1 changed files with 5 additions and 9 deletions

View File

@ -2,23 +2,19 @@
pkgname=p8-platform pkgname=p8-platform
version=2.1.0.1 version=2.1.0.1
revision=3 revision=3
wrksrc="platform-${pkgname}-${version}"
build_style=cmake build_style=cmake
configure_args="-DBUILD_SHARED_LIBS=1"
short_desc="Platform support library used by libCEC (Pulse Eight Edition)" short_desc="Platform support library used by libCEC (Pulse Eight Edition)"
maintainer="Enno Boland <gottox@voidlinux.org>" maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-2.0-or-later" license="GPL-2.0-or-later"
homepage="https://github.com/Pulse-Eight/platform" homepage="https://github.com/Pulse-Eight/platform"
distfiles="https://github.com/Pulse-Eight/platform/archive/p8-platform-${version}.tar.gz" distfiles="https://github.com/Pulse-Eight/platform/archive/p8-platform-${version}.tar.gz"
checksum=064f8d2c358895c7e0bea9ae956f8d46f3f057772cb97f2743a11d478a0f68a0 checksum=064f8d2c358895c7e0bea9ae956f8d46f3f057772cb97f2743a11d478a0f68a0
configure_args+=" -DBUILD_SHARED_LIBS=1"
wrksrc="platform-${pkgname}-${version}"
post_install() { pre_configure() {
vmkdir usr/lib vsed -i CMakeLists.txt \
if [ -d $DESTDIR/usr/lib64 ]; then -e 's;DESTINATION ${CMAKE_INSTALL_LIBDIR};DESTINATION lib;'
mv $DESTDIR/usr/lib64/* $DESTDIR/usr/lib
fi
mv $DESTDIR/$wrksrc/build/lib*/* $DESTDIR/usr/lib
sed -i "s#$wrksrc/build/##" $DESTDIR/usr/lib/p8-platform/p8-platform-config.cmake $DESTDIR/usr/lib/pkgconfig/p8-platform.pc
} }
p8-platform-devel_package() { p8-platform-devel_package() {