blob: 5a5ec5e7b061c603f01c85e8250c5dc5bb418a74 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# Maintainer: callmetango
# Contributor: artist <artist@artixlinux.org>
# Contributor: Vitalii Kuzhdin <vitaliikuzhdin@gmail.com>
# Contributor: AndyRTR <andyrtr@archlinux.org>
# Contributor: Jan de Groot <jgc@archlinux.org>
pkgname=xlibre-video-sisusb
_pkgname=xf86-video-sisusb
pkgver=25.0.0
pkgrel=51
pkgdesc="XLibre SiS USB video driver"
arch=('x86_64')
url='https://github.com/X11Libre/xf86-video-sisusb'
license=('BSD-3-Clause')
depends=(
'glibc'
'xlibre-xserver'
)
makedepends=(
'X-ABI-VIDEODRV_VERSION=28.0'
'xlibre-xserver-devel'
)
provides=('xf86-video-sisusb')
conflicts=(
'X-ABI-VIDEODRV_VERSION<28'
'X-ABI-VIDEODRV_VERSION>=29'
'xf86-video-sisusb'
)
groups=('xlibre-drivers')
source=("${url}/archive/refs/tags/xlibre-${_pkgname}-${pkgver}.tar.gz")
sha256sums=('470d8cb446797efb133e1a54bf1c1048804cd70843b3fce13700c0b01deeca4d')
prepare() {
cd ${_pkgname}-xlibre-${_pkgname}-${pkgver}
NOCONFIGURE=1 ./autogen.sh
}
build() {
cd ${_pkgname}-xlibre-${_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/-Wl,-z,now}
./configure --prefix=/usr
make
}
package() {
cd ${_pkgname}-xlibre-${_pkgname}-${pkgver}
make DESTDIR="${pkgdir}" install
install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/"
}
|