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

Andreas Radke andyrtr at gemini.archlinux.org
Sun Nov 7 11:31:02 UTC 2021


    Date: Sunday, November 7, 2021 @ 11:31:02
  Author: andyrtr
Revision: 427461

archrelease: copy trunk to staging-x86_64

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

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

Copied: xf86-video-sisusb/repos/staging-x86_64/PKGBUILD (from rev 427460, xf86-video-sisusb/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2021-11-07 11:31:02 UTC (rev 427461)
@@ -0,0 +1,35 @@
+#Maintainer: Jan de Groot <jgc at archlinux.org>
+
+pkgname=xf86-video-sisusb
+pkgver=0.9.7
+pkgrel=4
+pkgdesc="X.org SiS USB video driver"
+arch=(x86_64)
+url="https://xorg.freedesktop.org/"
+license=('custom')
+depends=('glibc')
+makedepends=('xorg-server-devel' 'X-ABI-VIDEODRV_VERSION=25.2')
+conflicts=('xorg-server<21.1.1' 'X-ABI-VIDEODRV_VERSION<25' 'X-ABI-VIDEODRV_VERSION>=26')
+source=(${url}/releases/individual/driver/${pkgname}-${pkgver}.tar.bz2)
+sha256sums=('f4400416b920cd1136d60d36b99d33f245cdeaf2ad6c1340936c7c0987761424')
+
+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
+}
+
+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