Skip to content
This repository has been archived by the owner on Dec 8, 2021. It is now read-only.

Simple Arch PKGBUILD if anyone is interested #2

Open
exuvo opened this issue Oct 1, 2021 · 2 comments
Open

Simple Arch PKGBUILD if anyone is interested #2

exuvo opened this issue Oct 1, 2021 · 2 comments

Comments

@exuvo
Copy link

exuvo commented Oct 1, 2021

Not really an issue but I made a simple PKGBUILD file based on zenpower3-dkms's PKGBUILD :

PKGBUILD

_pkgname=asus-wmi-ec-sensors
pkgname=asus-wmi-ec-sensors-dkms
pkgver=0.1
pkgrel=1
pkgdesc='Linux kernel driver for reading ec sensors on ASUS motherboards'
arch=('x86_64' 'i686')
url='https://github.com/zeule/asus-wmi-ec-sensors'
depends=('dkms')
provides=('asus-wmi-ec-sensors')
conflicts=('asus-wmi-ec-sensors')
source=("Makefile" "asus-wmi-ec-sensors.c" "dkms.conf")
sha256sums=('SKIP' 'SKIP' 'SKIP')

prepare() {
  sed -e "s/@CFLGS@//" \
      -e "s/@VERSION@/$pkgver/" \
      -i "$srcdir/dkms.conf"
}

build () {
	make
}

package() {
  install -Dm644 "$srcdir/dkms.conf" "$pkgdir/usr/src/$_pkgname-$pkgver/dkms.conf"
  install -Dm644 "$srcdir/Makefile" "$pkgdir/usr/src/$_pkgname-$pkgver/Makefile"
  install -Dm644 "$srcdir/asus-wmi-ec-sensors.c" "$pkgdir/usr/src/$_pkgname-$pkgver/asus-wmi-ec-sensors.c"
}

dkms.conf

MAKE="make TARGET=${kernelver} CFLAGS_MODULE+=@CFLGS@"
CLEAN="make clean"
PACKAGE_NAME="asus-wmi-ec-sensors"
PACKAGE_VERSION="@VERSION@"
BUILT_MODULE_NAME[0]="asus-wmi-ec-sensors"
DEST_MODULE_LOCATION[0]="/kernel/drivers/hwmon/asus-wmi-ec-sensors"
AUTOINSTALL="yes"
@zeule
Copy link
Owner

zeule commented Oct 2, 2021

Thank you! Let me suggest to add a modules.load.d entry?

@zeule
Copy link
Owner

zeule commented Oct 4, 2021

Thank you! Let me suggest to add a modules.load.d entry?

Unneeded after #3.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants