Compare commits
2
Commits
92bfe467e4
...
7ee829d56c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7ee829d56c | ||
|
|
200c24e2a4 |
@@ -1,23 +0,0 @@
|
|||||||
pkgbase = xlibre-video-dummy-with-vt
|
|
||||||
pkgdesc = XLibre dummy video driver with an allocated vt
|
|
||||||
pkgver = 25.0.0
|
|
||||||
pkgrel = 5
|
|
||||||
url = https://github.com/X11Libre/xf86-video-dummy
|
|
||||||
arch = x86_64
|
|
||||||
arch = aarch64
|
|
||||||
groups = xlibre-drivers
|
|
||||||
license = MIT
|
|
||||||
license = X11
|
|
||||||
makedepends = xlibre-xserver-devel>=25.0
|
|
||||||
makedepends = xorgproto
|
|
||||||
depends = xlibre-xserver>=25.0
|
|
||||||
depends = glibc
|
|
||||||
provides = xf86-video-dummy
|
|
||||||
provides = x11win-video-dummy
|
|
||||||
conflicts = xf86-video-dummy
|
|
||||||
source = https://github.com/X11Libre/xf86-video-dummy/archive/refs/tags/xlibre-xf86-video-dummy-25.0.0.tar.gz
|
|
||||||
source = dummy_driver.patch
|
|
||||||
sha256sums = b56e610705cd3d4d86422a11c6b0d93357e4d4749a05178a85fd250301d357b9
|
|
||||||
sha256sums = 68cdcf21e9b54a7fdb8e968292e1ef9ad154ddb1361b141a0a635c2a13c92bfa
|
|
||||||
|
|
||||||
pkgname = xlibre-video-dummy-with-vt
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
*
|
|
||||||
!PKGBUILD
|
|
||||||
!.SRCINFO
|
|
||||||
!.gitignore
|
|
||||||
!.nvchecker.toml
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
[xlibre-video-dummy]
|
|
||||||
source = "git"
|
|
||||||
git = "https://github.com/x11libre/xf86-video-dummy.git"
|
|
||||||
include_regex = "xlibre-xf86-video-dummy-.*"
|
|
||||||
prefix = "xlibre-xf86-video-dummy-"
|
|
||||||
@@ -1,59 +0,0 @@
|
|||||||
# Maintainer: Storm Dragon <storm_dragon@linux-a11y.org>
|
|
||||||
|
|
||||||
pkgname=xlibre-video-dummy-with-vt
|
|
||||||
pkgver=25.0.0
|
|
||||||
pkgrel=5
|
|
||||||
pkgdesc="XLibre dummy video driver with an allocated vt"
|
|
||||||
arch=(x86_64 aarch64)
|
|
||||||
_pkgname=xf86-video-dummy
|
|
||||||
url="https://github.com/X11Libre/${_pkgname}"
|
|
||||||
license=('MIT' 'X11')
|
|
||||||
depends=("xlibre-xserver>=${pkgver%.*}" 'glibc')
|
|
||||||
makedepends=("xlibre-xserver-devel>=${pkgver%.*}" 'xorgproto')
|
|
||||||
conflicts=("${_pkgname}")
|
|
||||||
provides=("${_pkgname}" 'x11win-video-dummy')
|
|
||||||
source=("${url}/archive/refs/tags/xlibre-${_pkgname}-${pkgver}.tar.gz"
|
|
||||||
"dummy_driver.patch")
|
|
||||||
groups=('xlibre-drivers')
|
|
||||||
sha256sums=('b56e610705cd3d4d86422a11c6b0d93357e4d4749a05178a85fd250301d357b9'
|
|
||||||
'68cdcf21e9b54a7fdb8e968292e1ef9ad154ddb1361b141a0a635c2a13c92bfa')
|
|
||||||
|
|
||||||
prepare() {
|
|
||||||
cd "${srcdir}/${_pkgname}-xlibre-${_pkgname}-${pkgver}/src"
|
|
||||||
patch -i "${srcdir}/dummy_driver.patch"
|
|
||||||
}
|
|
||||||
|
|
||||||
build() {
|
|
||||||
case "$CARCH" in
|
|
||||||
"x86_64")
|
|
||||||
CFLAGS=" -march=x86-64"
|
|
||||||
;;
|
|
||||||
"aarch64")
|
|
||||||
CFLAGS=" -march=armv8-a"
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
CFLAGS=" -march=native"
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
CFLAGS+=" -mtune=generic -O2 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security"
|
|
||||||
CFLAGS+=" -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer"
|
|
||||||
LDFLAGS=" -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,lazy -Wl,-z,relro -Wl,-z,pack-relative-relocs"
|
|
||||||
if [[ $CARCH != 'aarch64' ]]; then
|
|
||||||
CFLAGS+=" -fcf-protection"
|
|
||||||
fi
|
|
||||||
CXXFLAGS="${CFLAGS} -Wp,-D_GLIBCXX_ASSERTIONS"
|
|
||||||
export CFLAGS="${CFLAGS}"
|
|
||||||
export CXXFLAGS="${CXXFLAGS}"
|
|
||||||
export LDFLAGS="${LDFLAGS}"
|
|
||||||
|
|
||||||
cd "${srcdir}/${_pkgname}-xlibre-${_pkgname}-${pkgver}"
|
|
||||||
./autogen.sh
|
|
||||||
./configure --prefix=/usr
|
|
||||||
make
|
|
||||||
}
|
|
||||||
|
|
||||||
package() {
|
|
||||||
cd "${srcdir}/${_pkgname}-xlibre-${_pkgname}-${pkgver}"
|
|
||||||
make DESTDIR="${pkgdir}" install
|
|
||||||
install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
|
||||||
}
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
--- a/src/dummy_driver.c
|
|
||||||
+++ b/src/dummy_driver.c
|
|
||||||
@@ -1016,10 +1016,10 @@ dummyDriverFunc(ScrnInfoPtr pScrn, xorgDriverFuncOp op, pointer ptr)
|
|
||||||
CARD32 *flag;
|
|
||||||
|
|
||||||
switch (op) {
|
|
||||||
- case GET_REQUIRED_HW_INTERFACES:
|
|
||||||
- flag = (CARD32*)ptr;
|
|
||||||
- (*flag) = HW_SKIP_CONSOLE;
|
|
||||||
- return TRUE;
|
|
||||||
+ case GET_REQUIRED_HW_INTERFACES:
|
|
||||||
+ flag = (CARD32*)ptr;
|
|
||||||
+ /* Allow the driver to allocate a VT instead of skipping the console. */
|
|
||||||
+ return TRUE;
|
|
||||||
default:
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
@@ -76,7 +76,7 @@ LocalFileSigLevel = Optional
|
|||||||
#[core-testing]
|
#[core-testing]
|
||||||
#Include = /etc/pacman.d/mirrorlist
|
#Include = /etc/pacman.d/mirrorlist
|
||||||
|
|
||||||
[xlibre]
|
[xlibre-stable]
|
||||||
SigLevel = Required DatabaseOptional
|
SigLevel = Required DatabaseOptional
|
||||||
Server = https://packages.xlibre.net/arch/stable/$arch
|
Server = https://packages.xlibre.net/arch/stable/$arch
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -76,7 +76,7 @@ LocalFileSigLevel = Optional
|
|||||||
#[core-testing]
|
#[core-testing]
|
||||||
#Include = /etc/pacman.d/mirrorlist
|
#Include = /etc/pacman.d/mirrorlist
|
||||||
|
|
||||||
[xlibre]
|
[xlibre-stable]
|
||||||
SigLevel = Required DatabaseOptional
|
SigLevel = Required DatabaseOptional
|
||||||
Server = https://packages.xlibre.net/arch/stable/$arch
|
Server = https://packages.xlibre.net/arch/stable/$arch
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user