blob: 9ce474d0972bff78076e084bbc0ea33a0200d9eb (
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
34
35
36
37
38
39
40
41
42
43
|
# Maintainer: Daniel Parks <danielrparks at gmail dot com>
pkgname=acp3x-rn-dkms
_upstreamver='5.8-rc5'
pkgver="${_upstreamver/-/}"
pkgrel=1
pkgdesc="Renoir audio co-processor drivers from release candidate 5.8"
arch=('x86_64')
url="https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/sound/soc/amd?h=v$_upstreamver"
license=('GPL2')
depends=('dkms')
makedepends=('git')
conflicts=('linux>=5.8.0')
source=("https://git.kernel.org/torvalds/t/linux-$_upstreamver.tar.gz"
'dkms.conf'
'dkms.conf.sig')
noextract=("linux-$_upstreamver.tar.gz")
sha256sums=('69bd59fc15211f07466d322523a13071eb039ae210b4fb60cf5cf2534783e485'
'SKIP'
'SKIP')
validpgpkeys=('8A144654AD99CA9E984F4156EC74EAEC196A648E')
prepare() {
bsdtar -xf "linux-$_upstreamver.tar.gz" "linux-$_upstreamver/sound/soc/amd/renoir"
}
package() {
# used amd-sfh-hid-dkms as reference
local DEST="$pkgdir/usr/src/${pkgname%-dkms}-$pkgver"
local SRC="linux-$_upstreamver/sound/soc/amd/renoir"
install -dm755 "$DEST"
for f in "$SRC/"*.[hc] "$SRC/Makefile"; do
install -m644 "$f" "$DEST"
done
install -m644 dkms.conf "$DEST"
# substitution in dkms.conf
sed -e 's/PACKAGE_NAME=""/PACKAGE_NAME="'"${pkgname%-dkms}"'"/' \
-e 's/PACKAGE_VERSION=""/PACKAGE_VERSION="'"$pkgver"'"/' \
-i "$DEST/dkms.conf"
}
|