File tree 1 file changed +12
-8
lines changed
1 file changed +12
-8
lines changed Original file line number Diff line number Diff line change 3
3
4
4
pkgname=(' mhwd-amdgpu' )
5
5
pkgver=1.1.0
6
- pkgrel=2
6
+ pkgrel=3.1
7
7
8
8
pkgdesc=" MHWD module-ids for amdgpu $pkgver "
9
9
arch=(' any' )
@@ -14,17 +14,21 @@ source=(${url}/releases/individual/driver/xf86-video-amdgpu-${pkgver}.tar.bz2 mh
14
14
sha256sums=(' 69f5d0ded9f4d5ce529099b6b581268e8f4dcff5608f1441d4ebc110ebc57931'
15
15
' 98ff6b7a8cc0b69ebf1e7b6b04a15717e9d8aae43d9b771b3ac83a5f4d44e157' )
16
16
17
+ prepare () {
18
+ # remove experimental IDs
19
+ # see also https://github.com/manjaro/packages-core/issues/37
20
+ # https://github.com/manjaro/packages-core/issues/47
21
+ sed -i ' /BONAIRE/' d ${srcdir} /xf86-video-amdgpu-$pkgver /src/pcidb/ati_pciids.csv
22
+ sed -i ' /KABINI/' d ${srcdir} /xf86-video-amdgpu-$pkgver /src/pcidb/ati_pciids.csv
23
+ sed -i ' /KAVERI/' d ${srcdir} /xf86-video-amdgpu-$pkgver /src/pcidb/ati_pciids.csv
24
+ sed -i ' /HAWAII/' d ${srcdir} /xf86-video-amdgpu-$pkgver /src/pcidb/ati_pciids.csv
25
+ sed -i ' /TOPAZ/' d ${srcdir} /xf86-video-amdgpu-$pkgver /src/pcidb/ati_pciids.csv
26
+ }
27
+
17
28
package () {
18
29
install -d -m755 " ${pkgdir} /var/lib/mhwd/ids/pci/"
19
30
# Generate mhwd database
20
31
sh -e ${srcdir} /mhwd-amdgpu \
21
32
${srcdir} /xf86-video-amdgpu-$pkgver /src/pcidb/ati_pciids.csv \
22
33
> ${pkgdir} /var/lib/mhwd/ids/pci/amdgpu.ids
23
- # remove experimental IDs
24
- # see also https://github.com/manjaro/packages-core/issues/37
25
- sed -i ' /6900/' d ${pkgdir} /var/lib/mhwd/ids/pci/amdgpu.ids
26
- sed -i ' /6901/' d ${pkgdir} /var/lib/mhwd/ids/pci/amdgpu.ids
27
- sed -i ' /6902/' d ${pkgdir} /var/lib/mhwd/ids/pci/amdgpu.ids
28
- sed -i ' /6903/' d ${pkgdir} /var/lib/mhwd/ids/pci/amdgpu.ids
29
- sed -i ' /6907/' d ${pkgdir} /var/lib/mhwd/ids/pci/amdgpu.ids
30
34
}
You can’t perform that action at this time.
0 commit comments