blob: 88036a8dae417175afcdf276673e511a26700a5e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# Maintainer: Gabriel Rauter <rauter.gabriel@gmail.com>
_pkgbase=rtc-pcf85063
pkgname=$_pkgbase-dkms
pkgver=6.2
pkgrel=1
pkgdesc="PC85063 kernel module (DKMS)"
arch=("any")
url="https://kernel.org"
license=("GPL2")
makedepends=(dkms git)
provides=($_pkgbase)
conflicts=($_pkgbase)
source=("https://raw.githubusercontent.com/torvalds/linux/v$pkgver/drivers/rtc/$_pkgbase.c"
"dkms.conf"
"Makefile")
sha256sums=('e9d0ce30323489e2d13a354619fd0cd5edee9b3462cabf815be53b0a01412a28'
'06612e69e2c592b9dd32d15a4eae118e7a717b3e89170ecc02a6f64dbaf3bf21'
'4cd1a6449b1b74d11e103e25e43007c60ca646e96485e98fc359815a7c12a7fa')
package() {
mkdir -p $pkgdir/usr/src/$_pkgbase-$pkgver/
# Copy dkms.conf
install -Dm644 dkms.conf $pkgdir/usr/src/$_pkgbase-$pkgver/
# Set name and version
sed -e "s/@_PKGBASE@/$_pkgbase/" \
-e "s/@PKGVER@/$pkgver/" \
-i $pkgdir/usr/src/$_pkgbase-$pkgver/dkms.conf
# Copy sources (including Makefile)
install -Dm644 $_pkgbase.c $pkgdir/usr/src/$_pkgbase-$pkgver/$_pkgbase.c
install -Dm644 Makefile $pkgdir/usr/src/$_pkgbase-$pkgver/Makefile
}
|