main/libx11: modernize

This commit is contained in:
Leo 2020-04-05 16:12:53 -03:00
parent 27cf05f3f0
commit 96b4ffd87f

View File

@ -10,17 +10,15 @@ subpackages="$pkgname-static $pkgname-dev $pkgname-doc"
depends_dev="libxcb-dev xtrans"
makedepends="$depends_dev xorgproto util-macros xmlto"
source="https://www.x.org/releases/individual/lib/libX11-$pkgver.tar.bz2"
builddir="$srcdir"/libX11-$pkgver
# secfixes:
# 1.6.6-r0:
# - CVE-2018-14598
# - CVE-2018-14599
# - CVE-2018-14600
# - CVE-2018-14598
# - CVE-2018-14599
# - CVE-2018-14600
build() {
cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
@ -33,12 +31,10 @@ build() {
}
check() {
cd "$builddir"
make check
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}