* add con2fbmap

This commit is contained in:
Alexander Baldeck 2023-01-24 21:05:19 +01:00
parent 3c93f5ed2c
commit 073a19c4d6
3 changed files with 49 additions and 0 deletions

16
con2fbmap/.SRCINFO Normal file
View File

@ -0,0 +1,16 @@
pkgbase = con2fbmap
pkgdesc = Shows and sets mapping between consoles and framebuffer devices
pkgver = 2.1.0
pkgrel = 52
url = https://www.debian.org/
arch = i686
arch = x86_64
arch = armv6h
arch = armv7h
arch = aarch64
license = GPL
source = https://mirrors.kernel.org/debian/pool/main/f/fbset/fbset_2.1-28.debian.tar.xz
sha512sums = ea96e699e08d15fec4106434edf6f360e78e531dbbd81507bca8f2b31ec39fd12ba0d5c4a6c8a8a110112f3d4e83c3425ebaa59625adb24c3990d18e6f2051c9
pkgname = con2fbmap

6
con2fbmap/.gitignore vendored Normal file
View File

@ -0,0 +1,6 @@
/src
/pkg
*.xz
*.tar.*
*.pkg.*
*.log

27
con2fbmap/PKGBUILD Normal file
View File

@ -0,0 +1,27 @@
# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
# Maintainer: Kenneth Endfinger <kaendfinger@gmail.com>
pkgname=con2fbmap
pkgver=2.1.0
pkgrel=52
pkgdesc='Shows and sets mapping between consoles and framebuffer devices'
url='https://www.debian.org/'
license=('GPL')
arch=(i686 x86_64 armv6h armv7h aarch64 powerpc64le powerpc64 powerpc riscv64)
source=('https://mirrors.kernel.org/debian/pool/main/f/fbset/fbset_2.1-28.debian.tar.xz')
sha512sums=('ea96e699e08d15fec4106434edf6f360e78e531dbbd81507bca8f2b31ec39fd12ba0d5c4a6c8a8a110112f3d4e83c3425ebaa59625adb24c3990d18e6f2051c9')
prepare() {
cd "${srcdir}"
patch -N --silent -i debian/patches/03_con2fbmap.patch &2>/dev/null
}
build() {
cd "${srcdir}"
gcc con2fbmap.c -o con2fbmap
}
package() {
cd "${srcdir}"
install -Dm755 con2fbmap "${pkgdir}/usr/bin/con2fbmap"
}