[arch-commits] Commit in xf86-video-openchrome/repos (2 files)

Andreas Radke andyrtr at gemini.archlinux.org
Sun Nov 7 11:28:51 UTC 2021


    Date: Sunday, November 7, 2021 @ 11:28:51
  Author: andyrtr
Revision: 427459

archrelease: copy trunk to staging-x86_64

Added:
  xf86-video-openchrome/repos/staging-x86_64/
  xf86-video-openchrome/repos/staging-x86_64/PKGBUILD
    (from rev 427458, xf86-video-openchrome/trunk/PKGBUILD)

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

Copied: xf86-video-openchrome/repos/staging-x86_64/PKGBUILD (from rev 427458, xf86-video-openchrome/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2021-11-07 11:28:51 UTC (rev 427459)
@@ -0,0 +1,69 @@
+# Maintainer: AndyRTR <andyrtr at archlinux.org>
+# Contributor: Paul Mattal <paul at mattal.com>
+# Contributor: Juergen Hoetzel <juergen at hoetzel.info>
+
+pkgname=xf86-video-openchrome
+_commit=15c868a # 7 digits # = 0.6.0 RC1
+pkgver=0.6.0.r754.g15c868a
+#pkgver=0.6.0
+pkgrel=1
+pkgdesc="X.Org Openchrome drivers"
+arch=(x86_64)
+license=('custom')
+url="https://www.freedesktop.org/wiki/Openchrome/"
+depends=('libdrm' 'libxvmc' 'systemd-libs')
+optdepends=('unichrome-dri')
+makedepends=('xorg-server-devel' 'X-ABI-VIDEODRV_VERSION=25.2' 'systemd' 'libxv'
+             'git')
+conflicts=('xorg-server<21.1.1' 'X-ABI-VIDEODRV_VERSION<25' 'X-ABI-VIDEODRV_VERSION>=26'
+           'xf86-video-via' 'xf86-video-unichrome' 'openchrome')
+replaces=('openchrome' 'xf86-video-via')
+groups=('xorg-drivers')
+options=('!emptydirs')
+#source=(https://xorg.freedesktop.org/archive/individual/driver/${pkgname}-${pkgver}.tar.bz2{,.sig})
+#sha256sums=('da2975c6379358de52c1257710c67eb59139a7f0a1cd28d00cc64cc3e1c02f75'
+#            'SKIP')
+source=("git://anongit.freedesktop.org/openchrome/xf86-video-openchrome#commit=${_commit}")
+sha256sums=('SKIP')
+validpgpkeys=('CDA92E38A7A7A82237E9AB61C922784178BFFDB0') # "Kevin Brace <kevinbrace at gmx.com>"
+
+pkgver() {
+  cd $pkgname
+  #git describe --long | sed 's/-/+/g'
+#  git describe --long | sed "s/openchrome-//;s/-/./g"
+  git describe --long | sed 's/^xf86-video-openchrome-//;s/\([^-]*-g\)/r\1/;s/-/./g'
+#  git describe --long | sed "s/openchrome-//;s/0.5/0.5.200/;s/-/+/g"
+#  git describe --long | sed "s/openchrome-//;s/0.5/0.5.0/;s/-/+/g"
+}
+
+prepare() {
+  cd $pkgname
+  NOCONFIGURE=1 ./autogen.sh
+}
+
+build() {
+  cd ${pkgname} #-${pkgver}
+
+  # Since pacman 5.0.2-2, hardened flags are now enabled in makepkg.conf
+  # With them, module fail to load with undefined symbol.
+  # See https://bugs.archlinux.org/task/55102 / https://bugs.archlinux.org/task/54845
+  export CFLAGS=${CFLAGS/-fno-plt}
+  export CXXFLAGS=${CXXFLAGS/-fno-plt}
+  export LDFLAGS=${LDFLAGS/,-z,now}
+
+  ./configure --prefix=/usr
+  make
+}
+
+check() {
+  cd ${pkgname} #-${pkgver}
+  make check
+}
+
+
+package() {
+  cd ${pkgname} #-${pkgver}
+  make DESTDIR="${pkgdir}" install
+  install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
+  install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/"
+}



More information about the arch-commits mailing list