|
| 1 | +# Template file for 'nx-libs' |
| 2 | +pkgname=nx-libs |
| 3 | +version=3.5.99.24 |
| 4 | +revision=1 |
| 5 | +build_style=gnu-makefile |
| 6 | +make_install_args="PREFIX=/usr" |
| 7 | +hostmakedepends="autoconf automake libtool pkg-config which imake xkbcomp" |
| 8 | +makedepends="xorgproto zlib-devel libjpeg-turbo-devel libpng-devel libXext-devel libXdamage-devel libXrandr-devel libXtst-devel pixman-devel gccmakedep libXfont2-devel libxml2-devel libXcomposite-devel libXinerama-devel libXpm-devel font-util" |
| 9 | +short_desc="NX X11 protocol compression libraries" |
| 10 | +maintainer="eoli3n <jkirsz@gmail.com>" |
| 11 | +license="GPL-2.0-or-later" |
| 12 | +homepage="https://github.com/ArcticaProject/nx-libs" |
| 13 | +distfiles="https://github.com/ArcticaProject/nx-libs/archive/$version/$pkgname-$version.tar.gz" |
| 14 | +checksum=e1ea9ae7621ca955e9650caacd2260eed26aae2be4eff2b44c2b1aaecd69f9eb |
| 15 | +nocross="imake will be droped in the next version https://github.com/ArcticaProject/nx-libs/issues/975" |
| 16 | +python_version=3 |
| 17 | + |
| 18 | +post_patch() { |
| 19 | + # Every Makefile has /usr/local as PREFIX, so replace that |
| 20 | + sed -i -e 's,/usr/local,/usr,' nx-X11/config/cf/site.def |
| 21 | +} |
| 22 | + |
| 23 | +do_build() { |
| 24 | + make ${makejobs} PREFIX=/usr \ |
| 25 | + CONFIGURE="./configure ${configure_args} --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --includedir=/usr/include" |
| 26 | +} |
| 27 | + |
| 28 | +post_install() { |
| 29 | + # remove extras, GL, and other unneeded headers |
| 30 | + rm -rf ${DESTDIR}/usr/include/GL |
| 31 | + rm -rf ${DESTDIR}/usr/include/nx-X11 |
| 32 | + rm -rf ${DESTDIR}/usr/include/nx-X11/extensions/XK*.h |
| 33 | + rm -rf ${DESTDIR}/usr/include/nx-X11/extensions/*Xv*.h |
| 34 | + rm -rf ${DESTDIR}/usr/include/nx-X11/extensions/Xres*.h |
| 35 | + rm -rf ${DESTDIR}/usr/include/nx-X11/extensions/XIproto.h |
| 36 | + rm -rf ${DESTDIR}/usr/include/nx-X11/extensions/XI.h |
| 37 | + rm -rf ${DESTDIR}/usr/include/nx-X11/Xtrans |
| 38 | +} |
0 commit comments