Skip to content

Instantly share code, notes, and snippets.

@graysky2
Created December 30, 2023 10:11
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save graysky2/5ccfa210942138570902afa4e621ba36 to your computer and use it in GitHub Desktop.
Save graysky2/5ccfa210942138570902afa4e621ba36 to your computer and use it in GitHub Desktop.
it87-dkms-git cleaned
# Maintainer: Daniel Hillenbrand <codeworkx at bbqlinux dot org>
# Contributer: Hanabishi
# Contributer: graysky <therealgraysky AT proton DOT me>
pkgbase=it87
pkgname=(
$pkgbase-dkms-git
$pkgbase-dkms-git-docs
)
pkgver=236.6392311
pkgrel=1
pkgdesc="Linux Driver for ITE LPC chips"
arch=('x86_64')
url="https://github.com/frankcrawford/it87"
license=('GPL')
depends=('dkms')
makedepends=('git')
provides=('it87')
conflicts=('it87-frankcrawford-dkms-git')
source=("$pkgbase::git+https://github.com/frankcrawford/it87.git"
"dkms.conf")
sha256sums=('SKIP'
'f325b751c8a81416a75c2c1e7a7bc9ca46ae0fa3b44d4ccc09593274be1b2dc7')
pkgver() {
cd "$srcdir/$pkgbase"
printf "%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "$srcdir/$pkgbase"
}
package_it87-dkms-git() {
cd "$srcdir/$pkgbase"
install -d "$pkgdir"/usr/src/$pkgbase-$pkgver/
install -Dm644 "$srcdir"/dkms.conf 'compat.h' 'it87.c' 'Makefile' -t "$pkgdir"/usr/src/$pkgbase-$pkgver
sed -e "s/@_PKGBASE@/$pkgbase/" \
-e "s/@PKGVER@/$pkgver/" \
-i "$pkgdir"/usr/src/$pkgbase-$pkgver/dkms.conf
install -Dm644 'Sensors configs'/* -t "$pkgdir"/usr/share/it87/configs
}
package_it87-dkms-git-docs() {
cd "$srcdir/$pkgbase"
install -Dm644 'README' 'ISSUES' -t "$pkgdir"/usr/share/doc/$pkgname
cp -rd 'Research' -t "$pkgdir"/usr/share/doc/$pkgname
}
@Kimikz
Copy link

Kimikz commented Jan 8, 2024

do you plan to update the aur with this?

@graysky2
Copy link
Author

graysky2 commented Jan 8, 2024

I do not own the package in the AUR. I can only make the suggestion.

@codebling
Copy link

Package owner here, think I did not see the comment. I see a number of changes, but I'm not sure I know exactly why there were all made.

Mirror of AUR repo is available at https://github.com/codebling/arch-it87-frankcrawford-dkms-git if you submit a pull request there it will be easier to track the discussion.

It looks like this was turned into a multipackage but I have some questions about that too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment