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

Andreas Radke andyrtr at archlinux.org
Thu Dec 19 18:48:18 UTC 2019


    Date: Thursday, December 19, 2019 @ 18:48:17
  Author: andyrtr
Revision: 538428

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: libxpresent/repos/community-staging-x86_64/PKGBUILD (from rev 538427, libxpresent/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2019-12-19 18:48:17 UTC (rev 538428)
@@ -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=2
+pkgdesc="X Present Extension library"
+arch=('x86_64')
+url="https://gitlab.freedesktop.org/xorg/lib/libxpresent"
+license=('custom')
+depends=('libxfixes' 'libxrandr')
+makedepends=('xorg-util-macros' 'xorgproto')
+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