[arch-commits] Commit in libxpresent/repos (2 files)

Brad Fanella cesura at archlinux.org
Thu Dec 20 08:32:54 UTC 2018


    Date: Thursday, December 20, 2018 @ 08:32:54
  Author: cesura
Revision: 416879

archrelease: copy trunk to community-x86_64

Added:
  libxpresent/repos/community-x86_64/
  libxpresent/repos/community-x86_64/PKGBUILD
    (from rev 416878, libxpresent/trunk/PKGBUILD)

----------+
 PKGBUILD |   32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

Copied: libxpresent/repos/community-x86_64/PKGBUILD (from rev 416878, libxpresent/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2018-12-20 08:32:54 UTC (rev 416879)
@@ -0,0 +1,32 @@
+# Maintainer: Brad Fanella <cesura at archlinux.org>
+# Contributor: Andrey Vihrov <andrey.vihrov at gmail.com>
+
+pkgname=libxpresent
+pkgver=1.0.0
+pkgrel=1
+pkgdesc="X Present Extension library"
+arch=('x86_64')
+url="https://gitlab.freedesktop.org/xorg/lib/libxpresent"
+license=('custom')
+depends=('xorgproto' 'libxfixes' 'libxrandr')
+makedepends=('xorg-util-macros')
+source=("https://gitlab.freedesktop.org/xorg/lib/${pkgname}/-/archive/libXpresent-${pkgver}/${pkgname}-libXpresent-${pkgver}.tar.gz")
+sha256sums=('86e280867498906ae617faaeefbef10e1ef7d367102950b497503a348bd5daab')
+
+build() {
+	cd "${pkgname}-libXpresent-${pkgver}"
+
+  	./autogen.sh --prefix=/usr --disable-dependency-tracking
+	
+	# -Wl,--as-needed should come before all libraries
+	sed -i -e '/\$CC/s/-shared/\0 -Wl,--as-needed/' libtool
+
+	make
+}
+
+package() {
+	cd "${pkgname}-libXpresent-${pkgver}"
+	
+	make DESTDIR="${pkgdir}" install
+	install -D -m 0644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}



More information about the arch-commits mailing list