34 lines
1.0 KiB
Bash
34 lines
1.0 KiB
Bash
# Template file for 'p8-platform'
|
|
pkgname=p8-platform
|
|
version=2.1.0.1
|
|
revision=1
|
|
build_style=cmake
|
|
short_desc="Platform support library used by libCEC (Pulse Eight Edition)"
|
|
maintainer="Enno Boland <gottox@voidlinux.eu>"
|
|
license="GPL-2"
|
|
homepage="https://github.com/Pulse-Eight/platform"
|
|
distfiles="https://github.com/Pulse-Eight/platform/archive/p8-platform-$version.tar.gz"
|
|
checksum=064f8d2c358895c7e0bea9ae956f8d46f3f057772cb97f2743a11d478a0f68a0
|
|
configure_args+=" -DBUILD_SHARED_LIBS=1"
|
|
wrksrc=platform-$pkgname-$version
|
|
|
|
post_install() {
|
|
vmkdir usr/lib
|
|
if [ -d $DESTDIR/usr/lib64 ]; then
|
|
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() {
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove usr/lib/p8-platform
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|