diff options
author | Leo <thinkabit.ukim@gmail.com> | 2019-11-28 22:14:29 +0100 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-11-30 17:01:54 +0100 |
commit | b88c740ef05e354ae14ef081e25a80e2d7f4af6b (patch) | |
tree | 16789e36ddbc7fc58c4242bbb4c80f9acb7f033b /community/nx-libs/APKBUILD | |
parent | 1891cbb33aba72ce1db052ffccff12c42d3ce7b5 (diff) | |
download | aports-b88c740ef05e354ae14ef081e25a80e2d7f4af6b.tar.bz2 aports-b88c740ef05e354ae14ef081e25a80e2d7f4af6b.tar.xz |
community/nx-libs: tidy up APKBUILD
Diffstat (limited to 'community/nx-libs/APKBUILD')
-rw-r--r-- | community/nx-libs/APKBUILD | 36 |
1 files changed, 26 insertions, 10 deletions
diff --git a/community/nx-libs/APKBUILD b/community/nx-libs/APKBUILD index 7ddf99ee5d..d88c7786dd 100644 --- a/community/nx-libs/APKBUILD +++ b/community/nx-libs/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Francesco Colista <fcolista@alpinelinux.org> pkgname=nx-libs pkgver=3.5.99.22 -pkgrel=0 +pkgrel=1 pkgdesc="NoMachine libraries (redistributed by x2go)" url="http://x2go.org" arch="all" @@ -10,33 +10,49 @@ license="GPL-2.0-or-later" depends="font-cursor-misc font-misc-misc" makedepends="libx11-dev zlib-dev libjpeg-turbo-dev libpng-dev libfontenc-dev linux-headers - libxml2-dev xkbcomp-dev imake + libxml2-dev xkbcomp-dev imake bash automake autoconf libtool libxext-dev libxdamage-dev libxrandr-dev libxtst-dev pixman-dev gccmakedep libxfont-dev libxpm-dev libxcomposite-dev libxinerama-dev" subpackages="$pkgname-dev $pkgname-doc" -source="https://github.com/ArcticaProject/$pkgname/archive/$pkgver/$pkgname-$pkgver.tar.gz +source="https://github.com/ArcticaProject/nx-libs/archive/$pkgver/nx-libs-$pkgver.tar.gz xf86bigfont.patch fix-musl-headers-x86.patch" -builddir="$srcdir"/$pkgname-$pkgver prepare() { - cd "$builddir" - #Every Makefile has /usr/local as PREFIX, so replace that + # Every Makefile has /usr/local as PREFIX, so replace that sed -i -e 's,/usr/local,/usr,' nx-X11/config/cf/site.def default_prepare } build() { - cd "$builddir" - make -j1 PREFIX=/usr USRLIBDIR=/usr/lib SHLIBDIR=/usr/lib CONFIGURE="./configure --prefix=/usr --libdir=/usr/lib --includedir=/usr/include" || return 1 + make -j1 \ + PREFIX=/usr \ + USRLIBDIR=/usr/lib \ + SHLIBDIR=/usr/lib \ + CONFIGURE="./configure --prefix=/usr --libdir=/usr/lib --includedir=/usr/include" } package() { - cd "$builddir" - make PREFIX=/usr DESTDIR="$pkgdir" USRLIBDIR=/usr/lib SHLIBDIR=/usr/lib install CONFIGURE="./configure --prefix=/usr --libdir=/usr/lib --includedir=/usr/include" || return 1 + make \ + PREFIX=/usr \ + DESTDIR="$pkgdir" \ + USRLIBDIR=/usr/lib \ + SHLIBDIR=/usr/lib \ + CONFIGURE="./configure --prefix=/usr --libdir=/usr/lib --includedir=/usr/include" \ + install + + # remove extras, GL, and other unneeded headers + rm -rf "$pkgdir"/usr/include/GL + rm -rf "$pkgdir"/usr/include/nx-X11 + rm -rf "$pkgdir"/usr/include/nx-X11/extensions/XK*.h + rm -rf "$pkgdir"/usr/include/nx-X11/extensions/*Xv*.h + rm -rf "$pkgdir"/usr/include/nx-X11/extensions/Xres*.h + rm -rf "$pkgdir"/usr/include/nx-X11/extensions/XIproto.h + rm -rf "$pkgdir"/usr/include/nx-X11/extensions/XI.h + rm -rf "$pkgdir"/usr/include/nx-X11/Xtrans } sha512sums="a97371b9aecc8f6a9386d5407f35b98b55cc14cf36aae257e9f05d2300cb67b713c921cb7d0865b9f73259aea10cfa81790e66f8db8a2a2044872cb591a34056 nx-libs-3.5.99.22.tar.gz |