Skip to content

Commit

Permalink
Update PKGBUILD
Browse files Browse the repository at this point in the history
  • Loading branch information
YeaSeb authored Apr 3, 2022
1 parent 0a541a8 commit 6ab4812
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions packaging/arch/PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,33 +1,34 @@
# Maintainer: Hannes Mann <[email protected]>
# Contributor: Hannes Mann <[email protected]>

pkgname=gcadapter-oc-dkms
pkgver=1.4
pkgname=wmo-oc-dkms
pkgver=1.0
pkgrel=1
pkgdesc="Kernel module for overclocking the Nintendo Wii U/Mayflash GameCube adapter."
pkgdesc="Kernel module for overclocking the MS Wheel Mouse Optical (MLT04)."
arch=('any')
url="https://github.com/HannesMann/gcadapter-oc-kmod"
url="https://github.com/YeaSeb/WMO1.1a-oc-kmod"
license=('GPL2')
depends=('dkms')
# TODO: release a zip once no conflict is in sight
source=('https://github.com/HannesMann/gcadapter-oc-kmod/archive/v1.4.tar.gz'
'dkms.conf')
md5sums=('SKIP'
'aad917366718c6335b1dc6f2e921a539')

prepare() {
echo "gcadapter_oc" > gcadapter-oc.conf
echo "wmo_oc" > wmo-oc.conf
}

package() {
# Copy dkms.conf
install -Dm644 "${srcdir}"/dkms.conf "${pkgdir}"/usr/src/${pkgname}-${pkgver}/dkms.conf

# Load module on boot
install -Dm644 "${srcdir}"/gcadapter-oc.conf "${pkgdir}"/usr/lib/modules-load.d/gcadapter-oc.conf
install -Dm644 "${srcdir}"/wmo-oc.conf "${pkgdir}"/usr/lib/modules-load.d/wmo-oc.conf

# Set name and version
sed -e "s/@PKGVER@/${pkgver}/" \
-i "${pkgdir}"/usr/src/${pkgname}-${pkgver}/dkms.conf

cp -r gcadapter-oc-kmod-${pkgver}/* "${pkgdir}"/usr/src/${pkgname}-${pkgver}/
cp -r wmo-oc-kmod-${pkgver}/* "${pkgdir}"/usr/src/${pkgname}-${pkgver}/
}

0 comments on commit 6ab4812

Please sign in to comment.