void-packages/srcpkgs/clxclient/template
tibequadorian 78d879b4d6 clxclient: remove build flags fix
also update maintainer
2021-02-26 01:59:03 -03:00

38 lines
1.1 KiB
Bash

# Template file for 'clxclient'
pkgname=clxclient
version=3.9.2
revision=1
build_wrksrc=source
build_style=gnu-makefile
make_install_args="LIBDIR=/usr/lib"
hostmakedepends="pkg-config"
makedepends="libX11-devel libXft-devel clthreads-devel freetype-devel"
short_desc="C++ wrapper library around the X Window System API"
maintainer="tibequadorian <tibequadorian@posteo.de>"
license="LGPL-2.1-or-later"
homepage="https://kokkinizita.linuxaudio.org/linuxaudio/"
distfiles="https://kokkinizita.linuxaudio.org/linuxaudio/downloads/${pkgname}-${version}.tar.bz2"
checksum=8501e964f0e0746abc5083a0b75fe3b937281cc4a9f7d1450ff98e86bc337881
CXXFLAGS="-fPIC"
pre_build() {
# fix wrong header import
vsed -i 's/<clxclient.h>/"clxclient.h"/' enumip.cc
# change pkgconf to pkg-config
vsed -i 's/pkgconf/pkg-config/' Makefile
}
post_install() {
# add missing symlink
ln -s libclxclient.so.${version} ${DESTDIR}/usr/lib/libclxclient.so.${version%%.*}
}
clxclient-devel_package() {
depends="${sourcepkg}-${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.so"
}
}