forked from Ashark/archlinux-amdgpu-pro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPKGBUILD
994 lines (775 loc) · 37 KB
/
PKGBUILD
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
# Author: Janusz Lewandowski <[email protected]>
# Maintainer: David McFarland <[email protected]>
# Autogenerated from AMD's Packages file
pkgbase=amdgpu-pro-installer
pkgname=(amdgpu-pro amdgpu-pro-clinfo amdgpu-pro-computing amdgpu-pro-core amdgpu-pro-dkms amdgpu-pro-firmware amdgpu-pro-graphics lib32-amdgpu-pro-lib32 lib32-amdgpu-pro-libopencl-dev amdgpu-pro-libopencl-dev amdgpu-pro-libopencl1 lib32-amdgpu-pro-libopencl1 amdgpu-pro-opencl-icd lib32-amdgpu-pro-opencl-icd amdgpu-pro-vulkan-driver lib32-amdgpu-pro-vulkan-driver libdrm-amdgpu-pro-amdgpu1 lib32-libdrm-amdgpu-pro-amdgpu1 lib32-libdrm-amdgpu-pro-dev libdrm-amdgpu-pro-dev libdrm-amdgpu-pro-tools libdrm2-amdgpu-pro lib32-libdrm2-amdgpu-pro libegl1-amdgpu-pro lib32-libegl1-amdgpu-pro lib32-libegl1-amdgpu-pro-dev libegl1-amdgpu-pro-dev libgbm-amdgpu-pro-dev lib32-libgbm-amdgpu-pro-dev libgbm1-amdgpu-pro lib32-libgbm1-amdgpu-pro lib32-libgl1-amdgpu-pro-dev libgl1-amdgpu-pro-dev lib32-libgl1-amdgpu-pro-dri libgl1-amdgpu-pro-dri libgl1-amdgpu-pro-glx lib32-libgl1-amdgpu-pro-glx libgles2-amdgpu-pro lib32-libgles2-amdgpu-pro libgles2-amdgpu-pro-dev lib32-libgles2-amdgpu-pro-dev lib32-libvdpau-amdgpu-pro libvdpau-amdgpu-pro xserver-xorg-video-amdgpu-pro)
if [ "$ALL_PACKAGES" = "true" ]; then
pkgname+=()
fi
pkgver=16.30.3.315407
pkgrel=2
arch=('x86_64')
url='http://www.amd.com'
license=('custom:AMD')
makedepends=('wget')
DLAGENTS='https::/usr/bin/wget --referer http://support.amd.com/en-us/kb-articles/Pages/AMDGPU-PRO-Beta-Driver-for-Vulkan-Release-Notes.aspx -N %u'
source=(https://www2.ati.com/drivers/linux/amdgpu-pro_16.30.3-315407.tar.xz
0001-add-OS-detection-for-arch.patch
0002-update-kcl_ttm_bo_reserve-for-linux-4.7.patch
0003-add-kcl_drm_gem_object_lookup.patch
0004-paging-changes-for-linux-4.6.patch
0005-LRU-stuff-isn-t-available-until-4.7.x.patch
0006-Change-name-of-vblank_disable_allowed-to-vblank_disa.patch
0007-Remove-connector-parameter-from-__drm_atomic_helper_.patch
0008-fix-apparent-typo-in-bandwidth_calcs-causing-array-e.patch
0009-disable-dal-by-default.patch
0010-remove-dependency-on-System.map.patch)
sha256sums=(97d6fb64617cf2cefe780e5fb83b29d8ee4e3e7886b71fe3d92b0113847b2354
ae5fed04cd626aadff6d4c7c59657f52a8dd6be3df4a9686702e74aa8c72d1de
df36d1d9f470094432b765016b558624fa9b28355c82a722f7bd4facdf912ce2
4afabc203dc52a8ad15f1d4dc62887d1a11472f11c1aa9f9adb8affc183f297b
0a0657826270a963be76f9e3a882432df4f6ac0628dd0966289cc5c064cadeb6
fe0075575bae0a7f76daa0686ab23464b867ef8ed0b4d39cec4bd566ec39f99c
a0e94234555f5254df096a93e050edbc341603d0b1d527f7b0c3179e111b7be1
2e291935e35ecdc9f7c87d288db9d73a27f4f5cc3b08f95b8b39fef3934c6735
50c56c4e2ed55d66e5d5e5689b2f146de63dbb3edc2bafabf5ca98e8ae58e028
7e5640468e9ede54a8b3cc8fd67d6c3ae3738aec959a655c9aeaac9570a646f9
2f6c74a5a909f27a5a18eae5acf2ca90c99c4f2e4aa8ceb766dbf8a0cb431817)
package_amdgpu-pro () {
pkgdesc="This package install all amdgpu-pro components."
depends=('amdgpu-pro-graphics=16.30.3.315407-2' 'amdgpu-pro-computing=16.30.3.315407-2')
arch=('x86_64')
rm -Rf "${srcdir}"/amdgpu-pro_16.30.3-315407_amd64
mkdir "${srcdir}"/amdgpu-pro_16.30.3-315407_amd64
cd "${srcdir}"/amdgpu-pro_16.30.3-315407_amd64
ar x "${srcdir}"/amdgpu-pro-driver/./amdgpu-pro_16.30.3-315407_amd64.deb
tar -C "${pkgdir}" -xf data.tar.xz
if [ -d "${pkgdir}/usr/lib/x86_64-linux-gnu" ]; then
mkdir -p "${pkgdir}"/usr/lib
mv "${pkgdir}"/usr/lib/x86_64-linux-gnu/* "${pkgdir}"/usr/lib
rmdir "${pkgdir}"/usr/lib/x86_64-linux-gnu
fi
}
package_amdgpu-pro-clinfo () {
pkgdesc="AMD OpenCL info utility"
depends=('amdgpu-pro-libopencl1=16.30.3.315407-2')
arch=('x86_64')
rm -Rf "${srcdir}"/amdgpu-pro-clinfo_16.30.3-315407_amd64
mkdir "${srcdir}"/amdgpu-pro-clinfo_16.30.3-315407_amd64
cd "${srcdir}"/amdgpu-pro-clinfo_16.30.3-315407_amd64
ar x "${srcdir}"/amdgpu-pro-driver/./amdgpu-pro-clinfo_16.30.3-315407_amd64.deb
tar -C "${pkgdir}" -xf data.tar.xz
if [ -d "${pkgdir}/usr/lib/x86_64-linux-gnu" ]; then
mkdir -p "${pkgdir}"/usr/lib
mv "${pkgdir}"/usr/lib/x86_64-linux-gnu/* "${pkgdir}"/usr/lib
rmdir "${pkgdir}"/usr/lib/x86_64-linux-gnu
fi
}
package_amdgpu-pro-computing () {
pkgdesc="This package install amdgpu-pro OpenCL components."
depends=('amdgpu-pro-core=16.30.3.315407-2' 'amdgpu-pro-clinfo=16.30.3.315407-2' 'amdgpu-pro-opencl-icd=16.30.3.315407-2' 'amdgpu-pro-libopencl-dev=16.30.3.315407-2')
arch=('x86_64')
rm -Rf "${srcdir}"/amdgpu-pro-computing_16.30.3-315407_amd64
mkdir "${srcdir}"/amdgpu-pro-computing_16.30.3-315407_amd64
cd "${srcdir}"/amdgpu-pro-computing_16.30.3-315407_amd64
ar x "${srcdir}"/amdgpu-pro-driver/./amdgpu-pro-computing_16.30.3-315407_amd64.deb
tar -C "${pkgdir}" -xf data.tar.xz
if [ -d "${pkgdir}/usr/lib/x86_64-linux-gnu" ]; then
mkdir -p "${pkgdir}"/usr/lib
mv "${pkgdir}"/usr/lib/x86_64-linux-gnu/* "${pkgdir}"/usr/lib
rmdir "${pkgdir}"/usr/lib/x86_64-linux-gnu
fi
}
package_amdgpu-pro-core () {
pkgdesc="This package switchs the GPU stack to amdgpu-pro with basic components."
depends=('linux-firmware' 'libdrm-amdgpu-pro-amdgpu1=16.30.3.315407-2')
arch=('x86_64')
rm -Rf "${srcdir}"/amdgpu-pro-core_16.30.3-315407_amd64
mkdir "${srcdir}"/amdgpu-pro-core_16.30.3-315407_amd64
cd "${srcdir}"/amdgpu-pro-core_16.30.3-315407_amd64
ar x "${srcdir}"/amdgpu-pro-driver/./amdgpu-pro-core_16.30.3-315407_amd64.deb
tar -C "${pkgdir}" -xf data.tar.xz
if [ -d "${pkgdir}/usr/lib/x86_64-linux-gnu" ]; then
mkdir -p "${pkgdir}"/usr/lib
mv "${pkgdir}"/usr/lib/x86_64-linux-gnu/* "${pkgdir}"/usr/lib
rmdir "${pkgdir}"/usr/lib/x86_64-linux-gnu
fi
mv ${pkgdir}/lib ${pkgdir}/usr/
sed -i 's/\/usr\/lib\/x86_64-linux-gnu\//\/usr\/lib\//' ${pkgdir}/usr/lib/amdgpu-pro/ld.conf
sed -i 's/\/usr\/lib\/i386-linux-gnu\//\/usr\/lib32\//' ${pkgdir}/usr/lib/amdgpu-pro/ld.conf
mkdir -p ${pkgdir}/etc/ld.so.conf.d/
ln -s /usr/lib/amdgpu-pro/ld.conf ${pkgdir}/etc/ld.so.conf.d/10-amdgpu-pro.conf
mkdir -p ${pkgdir}/etc/modprobe.d/
ln -s /usr/lib/amdgpu-pro/modprobe.conf ${pkgdir}/etc/modprobe.d/amdgpu-pro.conf
install=amdgpu-pro-core.install
}
package_amdgpu-pro-dkms () {
pkgdesc="amdgpu-pro driver in DKMS format."
depends=('dkms>=1.95')
arch=('any')
rm -Rf "${srcdir}"/amdgpu-pro-dkms_16.30.3-315407_all
mkdir "${srcdir}"/amdgpu-pro-dkms_16.30.3-315407_all
cd "${srcdir}"/amdgpu-pro-dkms_16.30.3-315407_all
ar x "${srcdir}"/amdgpu-pro-driver/./amdgpu-pro-dkms_16.30.3-315407_all.deb
tar -C "${pkgdir}" -xf data.tar.xz
if [ -d "${pkgdir}/usr/lib/x86_64-linux-gnu" ]; then
mkdir -p "${pkgdir}"/usr/lib
mv "${pkgdir}"/usr/lib/x86_64-linux-gnu/* "${pkgdir}"/usr/lib
rmdir "${pkgdir}"/usr/lib/x86_64-linux-gnu
fi
(cd ${pkgdir}/usr/src/amdgpu-pro-16.30.3-315407;
sed -i 's/\/extra/\/extramodules/' dkms.conf
patch -p1 -i "${srcdir}/0001-add-OS-detection-for-arch.patch";
patch -p1 -i "${srcdir}/0002-update-kcl_ttm_bo_reserve-for-linux-4.7.patch";
patch -p1 -i "${srcdir}/0003-add-kcl_drm_gem_object_lookup.patch";
patch -p1 -i "${srcdir}/0004-paging-changes-for-linux-4.6.patch";
patch -p1 -i "${srcdir}/0005-LRU-stuff-isn-t-available-until-4.7.x.patch";
patch -p1 -i "${srcdir}/0006-Change-name-of-vblank_disable_allowed-to-vblank_disa.patch";
patch -p1 -i "${srcdir}/0007-Remove-connector-parameter-from-__drm_atomic_helper_.patch";
patch -p1 -i "${srcdir}/0008-fix-apparent-typo-in-bandwidth_calcs-causing-array-e.patch";
patch -p1 -i "${srcdir}/0009-disable-dal-by-default.patch";
patch -p1 -i "${srcdir}/0010-remove-dependency-on-System.map.patch")
}
package_amdgpu-pro-firmware () {
pkgdesc="Firmware for amdgpu-pro cards."
depends=()
arch=('x86_64')
rm -Rf "${srcdir}"/amdgpu-pro-firmware_16.30.3-315407_amd64
mkdir "${srcdir}"/amdgpu-pro-firmware_16.30.3-315407_amd64
cd "${srcdir}"/amdgpu-pro-firmware_16.30.3-315407_amd64
ar x "${srcdir}"/amdgpu-pro-driver/./amdgpu-pro-firmware_16.30.3-315407_amd64.deb
tar -C "${pkgdir}" -xf data.tar.xz
if [ -d "${pkgdir}/usr/lib/x86_64-linux-gnu" ]; then
mkdir -p "${pkgdir}"/usr/lib
mv "${pkgdir}"/usr/lib/x86_64-linux-gnu/* "${pkgdir}"/usr/lib
rmdir "${pkgdir}"/usr/lib/x86_64-linux-gnu
fi
mv ${pkgdir}/lib ${pkgdir}/usr/
mv ${pkgdir}/usr/lib/firmware ${pkgdir}/usr/lib/firmware.tmp
mkdir -p ${pkgdir}/usr/lib/firmware
mv ${pkgdir}/usr/lib/firmware.tmp ${pkgdir}/usr/lib/firmware/updates
}
package_amdgpu-pro-graphics () {
pkgdesc="This package install amdgpu-pro graphics components."
depends=('amdgpu-pro-core=16.30.3.315407-2' 'libgles2-amdgpu-pro=16.30.3.315407-2' 'libgl1-amdgpu-pro-dev=16.30.3.315407-2' 'libgl1-amdgpu-pro-dri=16.30.3.315407-2' 'xserver-xorg-video-amdgpu-pro=16.30.3.315407-2' 'amdgpu-pro-vulkan-driver=16.30.3.315407-2' 'libvdpau-amdgpu-pro=16.30.3.315407-2')
arch=('x86_64')
rm -Rf "${srcdir}"/amdgpu-pro-graphics_16.30.3-315407_amd64
mkdir "${srcdir}"/amdgpu-pro-graphics_16.30.3-315407_amd64
cd "${srcdir}"/amdgpu-pro-graphics_16.30.3-315407_amd64
ar x "${srcdir}"/amdgpu-pro-driver/./amdgpu-pro-graphics_16.30.3-315407_amd64.deb
tar -C "${pkgdir}" -xf data.tar.xz
if [ -d "${pkgdir}/usr/lib/x86_64-linux-gnu" ]; then
mkdir -p "${pkgdir}"/usr/lib
mv "${pkgdir}"/usr/lib/x86_64-linux-gnu/* "${pkgdir}"/usr/lib
rmdir "${pkgdir}"/usr/lib/x86_64-linux-gnu
fi
provides=('libgl')
conflicts=('libgl')
}
package_lib32-amdgpu-pro-lib32 () {
pkgdesc="This package contains x86 libs for x86_64 machine usage."
depends=('lib32-libgles2-amdgpu-pro=16.30.3.315407-2' 'lib32-libgl1-amdgpu-pro-dev=16.30.3.315407-2' 'lib32-libgl1-amdgpu-pro-dri=16.30.3.315407-2' 'lib32-libgbm1-amdgpu-pro=16.30.3.315407-2' 'lib32-amdgpu-pro-opencl-icd=16.30.3.315407-2' 'lib32-amdgpu-pro-libopencl-dev=16.30.3.315407-2' 'lib32-amdgpu-pro-vulkan-driver=16.30.3.315407-2' 'lib32-libvdpau-amdgpu-pro=16.30.3.315407-2')
arch=('x86_64')
rm -Rf "${srcdir}"/amdgpu-pro-lib32_16.30.3-315407_i386
mkdir "${srcdir}"/amdgpu-pro-lib32_16.30.3-315407_i386
cd "${srcdir}"/amdgpu-pro-lib32_16.30.3-315407_i386
ar x "${srcdir}"/amdgpu-pro-driver/./amdgpu-pro-lib32_16.30.3-315407_i386.deb
tar -C "${pkgdir}" -xf data.tar.xz
if [ -d "${pkgdir}/usr/lib/i386-linux-gnu" ]; then
mkdir -p "${pkgdir}"/usr/lib32
mv "${pkgdir}"/usr/lib/i386-linux-gnu/* "${pkgdir}"/usr/lib32
rmdir "${pkgdir}"/usr/lib/i386-linux-gnu
fi
provides=('lib32-libgl')
conflicts=('lib32-libgl')
rm -Rf ${pkgdir}/usr/share/doc ${pkgdir}/usr/include
}
package_lib32-amdgpu-pro-libopencl-dev () {
pkgdesc="AMD OpenCL ICD Loader library"
depends=('lib32-amdgpu-pro-libopencl1=16.30.3.315407-2')
arch=('x86_64')
rm -Rf "${srcdir}"/amdgpu-pro-libopencl-dev_16.30.3-315407_i386
mkdir "${srcdir}"/amdgpu-pro-libopencl-dev_16.30.3-315407_i386
cd "${srcdir}"/amdgpu-pro-libopencl-dev_16.30.3-315407_i386
ar x "${srcdir}"/amdgpu-pro-driver/./amdgpu-pro-libopencl-dev_16.30.3-315407_i386.deb
tar -C "${pkgdir}" -xf data.tar.xz
if [ -d "${pkgdir}/usr/lib/i386-linux-gnu" ]; then
mkdir -p "${pkgdir}"/usr/lib32
mv "${pkgdir}"/usr/lib/i386-linux-gnu/* "${pkgdir}"/usr/lib32
rmdir "${pkgdir}"/usr/lib/i386-linux-gnu
fi
provides=(lib32-libcl)
conflicts=(lib32-libcl)
rm -Rf ${pkgdir}/usr/share/doc ${pkgdir}/usr/include
}
package_amdgpu-pro-libopencl-dev () {
pkgdesc="AMD OpenCL ICD Loader library"
depends=('amdgpu-pro-libopencl1=16.30.3.315407-2')
arch=('x86_64')
rm -Rf "${srcdir}"/amdgpu-pro-libopencl-dev_16.30.3-315407_amd64
mkdir "${srcdir}"/amdgpu-pro-libopencl-dev_16.30.3-315407_amd64
cd "${srcdir}"/amdgpu-pro-libopencl-dev_16.30.3-315407_amd64
ar x "${srcdir}"/amdgpu-pro-driver/./amdgpu-pro-libopencl-dev_16.30.3-315407_amd64.deb
tar -C "${pkgdir}" -xf data.tar.xz
if [ -d "${pkgdir}/usr/lib/x86_64-linux-gnu" ]; then
mkdir -p "${pkgdir}"/usr/lib
mv "${pkgdir}"/usr/lib/x86_64-linux-gnu/* "${pkgdir}"/usr/lib
rmdir "${pkgdir}"/usr/lib/x86_64-linux-gnu
fi
provides=(libcl)
conflicts=(libcl)
}
package_amdgpu-pro-libopencl1 () {
pkgdesc="AMD OpenCL ICD Loader library"
depends=()
arch=('x86_64')
rm -Rf "${srcdir}"/amdgpu-pro-libopencl1_16.30.3-315407_amd64
mkdir "${srcdir}"/amdgpu-pro-libopencl1_16.30.3-315407_amd64
cd "${srcdir}"/amdgpu-pro-libopencl1_16.30.3-315407_amd64
ar x "${srcdir}"/amdgpu-pro-driver/./amdgpu-pro-libopencl1_16.30.3-315407_amd64.deb
tar -C "${pkgdir}" -xf data.tar.xz
if [ -d "${pkgdir}/usr/lib/x86_64-linux-gnu" ]; then
mkdir -p "${pkgdir}"/usr/lib
mv "${pkgdir}"/usr/lib/x86_64-linux-gnu/* "${pkgdir}"/usr/lib
rmdir "${pkgdir}"/usr/lib/x86_64-linux-gnu
fi
}
package_lib32-amdgpu-pro-libopencl1 () {
pkgdesc="AMD OpenCL ICD Loader library"
depends=()
arch=('x86_64')
rm -Rf "${srcdir}"/amdgpu-pro-libopencl1_16.30.3-315407_i386
mkdir "${srcdir}"/amdgpu-pro-libopencl1_16.30.3-315407_i386
cd "${srcdir}"/amdgpu-pro-libopencl1_16.30.3-315407_i386
ar x "${srcdir}"/amdgpu-pro-driver/./amdgpu-pro-libopencl1_16.30.3-315407_i386.deb
tar -C "${pkgdir}" -xf data.tar.xz
if [ -d "${pkgdir}/usr/lib/i386-linux-gnu" ]; then
mkdir -p "${pkgdir}"/usr/lib32
mv "${pkgdir}"/usr/lib/i386-linux-gnu/* "${pkgdir}"/usr/lib32
rmdir "${pkgdir}"/usr/lib/i386-linux-gnu
fi
rm -Rf ${pkgdir}/usr/share/doc ${pkgdir}/usr/include
}
package_amdgpu-pro-opencl-icd () {
pkgdesc="non-free AMD OpenCL ICD Loaders"
depends=()
arch=('x86_64')
rm -Rf "${srcdir}"/amdgpu-pro-opencl-icd_16.30.3-315407_amd64
mkdir "${srcdir}"/amdgpu-pro-opencl-icd_16.30.3-315407_amd64
cd "${srcdir}"/amdgpu-pro-opencl-icd_16.30.3-315407_amd64
ar x "${srcdir}"/amdgpu-pro-driver/./amdgpu-pro-opencl-icd_16.30.3-315407_amd64.deb
tar -C "${pkgdir}" -xf data.tar.xz
if [ -d "${pkgdir}/usr/lib/x86_64-linux-gnu" ]; then
mkdir -p "${pkgdir}"/usr/lib
mv "${pkgdir}"/usr/lib/x86_64-linux-gnu/* "${pkgdir}"/usr/lib
rmdir "${pkgdir}"/usr/lib/x86_64-linux-gnu
fi
}
package_lib32-amdgpu-pro-opencl-icd () {
pkgdesc="non-free AMD OpenCL ICD Loaders"
depends=()
arch=('x86_64')
rm -Rf "${srcdir}"/amdgpu-pro-opencl-icd_16.30.3-315407_i386
mkdir "${srcdir}"/amdgpu-pro-opencl-icd_16.30.3-315407_i386
cd "${srcdir}"/amdgpu-pro-opencl-icd_16.30.3-315407_i386
ar x "${srcdir}"/amdgpu-pro-driver/./amdgpu-pro-opencl-icd_16.30.3-315407_i386.deb
tar -C "${pkgdir}" -xf data.tar.xz
if [ -d "${pkgdir}/usr/lib/i386-linux-gnu" ]; then
mkdir -p "${pkgdir}"/usr/lib32
mv "${pkgdir}"/usr/lib/i386-linux-gnu/* "${pkgdir}"/usr/lib32
rmdir "${pkgdir}"/usr/lib/i386-linux-gnu
fi
rm -Rf ${pkgdir}/usr/share/doc ${pkgdir}/usr/include
}
package_amdgpu-pro-vulkan-driver () {
pkgdesc="AMDGPU Pro Vulkan driver"
depends=('libdrm-amdgpu-pro-amdgpu1=16.30.3.315407-2')
arch=('x86_64')
rm -Rf "${srcdir}"/amdgpu-pro-vulkan-driver_16.30.3-315407_amd64
mkdir "${srcdir}"/amdgpu-pro-vulkan-driver_16.30.3-315407_amd64
cd "${srcdir}"/amdgpu-pro-vulkan-driver_16.30.3-315407_amd64
ar x "${srcdir}"/amdgpu-pro-driver/./amdgpu-pro-vulkan-driver_16.30.3-315407_amd64.deb
tar -C "${pkgdir}" -xf data.tar.xz
if [ -d "${pkgdir}/usr/lib/x86_64-linux-gnu" ]; then
mkdir -p "${pkgdir}"/usr/lib
mv "${pkgdir}"/usr/lib/x86_64-linux-gnu/* "${pkgdir}"/usr/lib
rmdir "${pkgdir}"/usr/lib/x86_64-linux-gnu
fi
sed -i 's/\/usr\/lib\/x86_64-linux-gnu\//\/usr\/lib\//' ${pkgdir}/etc/vulkan/icd.d/amd_icd64.json
}
package_lib32-amdgpu-pro-vulkan-driver () {
pkgdesc="AMDGPU Pro Vulkan driver"
depends=('lib32-libdrm-amdgpu-pro-amdgpu1=16.30.3.315407-2')
arch=('x86_64')
rm -Rf "${srcdir}"/amdgpu-pro-vulkan-driver_16.30.3-315407_i386
mkdir "${srcdir}"/amdgpu-pro-vulkan-driver_16.30.3-315407_i386
cd "${srcdir}"/amdgpu-pro-vulkan-driver_16.30.3-315407_i386
ar x "${srcdir}"/amdgpu-pro-driver/./amdgpu-pro-vulkan-driver_16.30.3-315407_i386.deb
tar -C "${pkgdir}" -xf data.tar.xz
if [ -d "${pkgdir}/usr/lib/i386-linux-gnu" ]; then
mkdir -p "${pkgdir}"/usr/lib32
mv "${pkgdir}"/usr/lib/i386-linux-gnu/* "${pkgdir}"/usr/lib32
rmdir "${pkgdir}"/usr/lib/i386-linux-gnu
fi
sed -i 's/\/usr\/lib\/i386-linux-gnu\//\/usr\/lib32\//' ${pkgdir}/etc/vulkan/icd.d/amd_icd32.json
rm -Rf ${pkgdir}/usr/share/doc ${pkgdir}/usr/include
}
package_libdrm-amdgpu-pro-amdgpu1 () {
pkgdesc="Userspace interface to amdgpu-specific kernel DRM services -- runtime"
depends=('libdrm2-amdgpu-pro=16.30.3.315407-2')
arch=('x86_64')
rm -Rf "${srcdir}"/libdrm-amdgpu-pro-amdgpu1_16.30.3-315407_amd64
mkdir "${srcdir}"/libdrm-amdgpu-pro-amdgpu1_16.30.3-315407_amd64
cd "${srcdir}"/libdrm-amdgpu-pro-amdgpu1_16.30.3-315407_amd64
ar x "${srcdir}"/amdgpu-pro-driver/./libdrm-amdgpu-pro-amdgpu1_16.30.3-315407_amd64.deb
tar -C "${pkgdir}" -xf data.tar.xz
if [ -d "${pkgdir}/usr/lib/x86_64-linux-gnu" ]; then
mkdir -p "${pkgdir}"/usr/lib
mv "${pkgdir}"/usr/lib/x86_64-linux-gnu/* "${pkgdir}"/usr/lib
rmdir "${pkgdir}"/usr/lib/x86_64-linux-gnu
fi
}
package_lib32-libdrm-amdgpu-pro-amdgpu1 () {
pkgdesc="Userspace interface to amdgpu-specific kernel DRM services -- runtime"
depends=('lib32-libdrm2-amdgpu-pro=16.30.3.315407-2')
arch=('x86_64')
rm -Rf "${srcdir}"/libdrm-amdgpu-pro-amdgpu1_16.30.3-315407_i386
mkdir "${srcdir}"/libdrm-amdgpu-pro-amdgpu1_16.30.3-315407_i386
cd "${srcdir}"/libdrm-amdgpu-pro-amdgpu1_16.30.3-315407_i386
ar x "${srcdir}"/amdgpu-pro-driver/./libdrm-amdgpu-pro-amdgpu1_16.30.3-315407_i386.deb
tar -C "${pkgdir}" -xf data.tar.xz
if [ -d "${pkgdir}/usr/lib/i386-linux-gnu" ]; then
mkdir -p "${pkgdir}"/usr/lib32
mv "${pkgdir}"/usr/lib/i386-linux-gnu/* "${pkgdir}"/usr/lib32
rmdir "${pkgdir}"/usr/lib/i386-linux-gnu
fi
rm -Rf ${pkgdir}/usr/share/doc ${pkgdir}/usr/include
}
package_lib32-libdrm-amdgpu-pro-dev () {
pkgdesc="Userspace interface to kernel DRM services -- development files"
depends=('lib32-libdrm2-amdgpu-pro=16.30.3.315407-2' 'lib32-libdrm-amdgpu-pro-amdgpu1=16.30.3.315407-2')
arch=('x86_64')
rm -Rf "${srcdir}"/libdrm-amdgpu-pro-dev_16.30.3-315407_i386
mkdir "${srcdir}"/libdrm-amdgpu-pro-dev_16.30.3-315407_i386
cd "${srcdir}"/libdrm-amdgpu-pro-dev_16.30.3-315407_i386
ar x "${srcdir}"/amdgpu-pro-driver/./libdrm-amdgpu-pro-dev_16.30.3-315407_i386.deb
tar -C "${pkgdir}" -xf data.tar.xz
if [ -d "${pkgdir}/usr/lib/i386-linux-gnu" ]; then
mkdir -p "${pkgdir}"/usr/lib32
mv "${pkgdir}"/usr/lib/i386-linux-gnu/* "${pkgdir}"/usr/lib32
rmdir "${pkgdir}"/usr/lib/i386-linux-gnu
fi
rm -Rf ${pkgdir}/usr/share/doc ${pkgdir}/usr/include
}
package_libdrm-amdgpu-pro-dev () {
pkgdesc="Userspace interface to kernel DRM services -- development files"
depends=('libdrm2-amdgpu-pro=16.30.3.315407-2' 'libdrm-amdgpu-pro-amdgpu1=16.30.3.315407-2')
arch=('x86_64')
rm -Rf "${srcdir}"/libdrm-amdgpu-pro-dev_16.30.3-315407_amd64
mkdir "${srcdir}"/libdrm-amdgpu-pro-dev_16.30.3-315407_amd64
cd "${srcdir}"/libdrm-amdgpu-pro-dev_16.30.3-315407_amd64
ar x "${srcdir}"/amdgpu-pro-driver/./libdrm-amdgpu-pro-dev_16.30.3-315407_amd64.deb
tar -C "${pkgdir}" -xf data.tar.xz
if [ -d "${pkgdir}/usr/lib/x86_64-linux-gnu" ]; then
mkdir -p "${pkgdir}"/usr/lib
mv "${pkgdir}"/usr/lib/x86_64-linux-gnu/* "${pkgdir}"/usr/lib
rmdir "${pkgdir}"/usr/lib/x86_64-linux-gnu
fi
}
package_libdrm-amdgpu-pro-tools () {
pkgdesc="testing tools for libdrm-amdgpu-pro"
depends=('libdrm-amdgpu-pro-amdgpu1=16.30.3.315407-2' 'libdrm2-amdgpu-pro=16.30.3.315407-2')
arch=('x86_64')
rm -Rf "${srcdir}"/libdrm-amdgpu-pro-tools_16.30.3-315407_amd64
mkdir "${srcdir}"/libdrm-amdgpu-pro-tools_16.30.3-315407_amd64
cd "${srcdir}"/libdrm-amdgpu-pro-tools_16.30.3-315407_amd64
ar x "${srcdir}"/amdgpu-pro-driver/./libdrm-amdgpu-pro-tools_16.30.3-315407_amd64.deb
tar -C "${pkgdir}" -xf data.tar.xz
if [ -d "${pkgdir}/usr/lib/x86_64-linux-gnu" ]; then
mkdir -p "${pkgdir}"/usr/lib
mv "${pkgdir}"/usr/lib/x86_64-linux-gnu/* "${pkgdir}"/usr/lib
rmdir "${pkgdir}"/usr/lib/x86_64-linux-gnu
fi
}
package_libdrm2-amdgpu-pro () {
pkgdesc="Userspace interface to kernel DRM services -- runtime"
depends=()
arch=('x86_64')
rm -Rf "${srcdir}"/libdrm2-amdgpu-pro_16.30.3-315407_amd64
mkdir "${srcdir}"/libdrm2-amdgpu-pro_16.30.3-315407_amd64
cd "${srcdir}"/libdrm2-amdgpu-pro_16.30.3-315407_amd64
ar x "${srcdir}"/amdgpu-pro-driver/./libdrm2-amdgpu-pro_16.30.3-315407_amd64.deb
tar -C "${pkgdir}" -xf data.tar.xz
if [ -d "${pkgdir}/usr/lib/x86_64-linux-gnu" ]; then
mkdir -p "${pkgdir}"/usr/lib
mv "${pkgdir}"/usr/lib/x86_64-linux-gnu/* "${pkgdir}"/usr/lib
rmdir "${pkgdir}"/usr/lib/x86_64-linux-gnu
fi
}
package_lib32-libdrm2-amdgpu-pro () {
pkgdesc="Userspace interface to kernel DRM services -- runtime"
depends=()
arch=('x86_64')
rm -Rf "${srcdir}"/libdrm2-amdgpu-pro_16.30.3-315407_i386
mkdir "${srcdir}"/libdrm2-amdgpu-pro_16.30.3-315407_i386
cd "${srcdir}"/libdrm2-amdgpu-pro_16.30.3-315407_i386
ar x "${srcdir}"/amdgpu-pro-driver/./libdrm2-amdgpu-pro_16.30.3-315407_i386.deb
tar -C "${pkgdir}" -xf data.tar.xz
if [ -d "${pkgdir}/usr/lib/i386-linux-gnu" ]; then
mkdir -p "${pkgdir}"/usr/lib32
mv "${pkgdir}"/usr/lib/i386-linux-gnu/* "${pkgdir}"/usr/lib32
rmdir "${pkgdir}"/usr/lib/i386-linux-gnu
fi
rm -Rf ${pkgdir}/usr/share/doc ${pkgdir}/usr/include
}
package_libegl1-amdgpu-pro () {
pkgdesc="implementation of the EGL API -- runtime"
depends=()
arch=('x86_64')
rm -Rf "${srcdir}"/libegl1-amdgpu-pro_16.30.3-315407_amd64
mkdir "${srcdir}"/libegl1-amdgpu-pro_16.30.3-315407_amd64
cd "${srcdir}"/libegl1-amdgpu-pro_16.30.3-315407_amd64
ar x "${srcdir}"/amdgpu-pro-driver/./libegl1-amdgpu-pro_16.30.3-315407_amd64.deb
tar -C "${pkgdir}" -xf data.tar.xz
if [ -d "${pkgdir}/usr/lib/x86_64-linux-gnu" ]; then
mkdir -p "${pkgdir}"/usr/lib
mv "${pkgdir}"/usr/lib/x86_64-linux-gnu/* "${pkgdir}"/usr/lib
rmdir "${pkgdir}"/usr/lib/x86_64-linux-gnu
fi
mv ${pkgdir}/usr/lib/amdgpu-pro/libEGL* ${pkgdir}/usr/lib
rm -r ${pkgdir}/usr/lib/amdgpu-pro
}
package_lib32-libegl1-amdgpu-pro () {
pkgdesc="implementation of the EGL API -- runtime"
depends=()
arch=('x86_64')
rm -Rf "${srcdir}"/libegl1-amdgpu-pro_16.30.3-315407_i386
mkdir "${srcdir}"/libegl1-amdgpu-pro_16.30.3-315407_i386
cd "${srcdir}"/libegl1-amdgpu-pro_16.30.3-315407_i386
ar x "${srcdir}"/amdgpu-pro-driver/./libegl1-amdgpu-pro_16.30.3-315407_i386.deb
tar -C "${pkgdir}" -xf data.tar.xz
if [ -d "${pkgdir}/usr/lib/i386-linux-gnu" ]; then
mkdir -p "${pkgdir}"/usr/lib32
mv "${pkgdir}"/usr/lib/i386-linux-gnu/* "${pkgdir}"/usr/lib32
rmdir "${pkgdir}"/usr/lib/i386-linux-gnu
fi
mv ${pkgdir}/usr/lib32/amdgpu-pro/libEGL* ${pkgdir}/usr/lib32
rm -r ${pkgdir}/usr/lib32/amdgpu-pro
rm -Rf ${pkgdir}/usr/share/doc ${pkgdir}/usr/include
}
package_lib32-libegl1-amdgpu-pro-dev () {
pkgdesc="implementation of the EGL API -- development files"
depends=('lib32-libegl1-amdgpu-pro=16.30.3.315407-2')
arch=('x86_64')
rm -Rf "${srcdir}"/libegl1-amdgpu-pro-dev_16.30.3-315407_i386
mkdir "${srcdir}"/libegl1-amdgpu-pro-dev_16.30.3-315407_i386
cd "${srcdir}"/libegl1-amdgpu-pro-dev_16.30.3-315407_i386
ar x "${srcdir}"/amdgpu-pro-driver/./libegl1-amdgpu-pro-dev_16.30.3-315407_i386.deb
tar -C "${pkgdir}" -xf data.tar.xz
if [ -d "${pkgdir}/usr/lib/i386-linux-gnu" ]; then
mkdir -p "${pkgdir}"/usr/lib32
mv "${pkgdir}"/usr/lib/i386-linux-gnu/* "${pkgdir}"/usr/lib32
rmdir "${pkgdir}"/usr/lib/i386-linux-gnu
fi
mv ${pkgdir}/usr/lib32/amdgpu-pro/libEGL* ${pkgdir}/usr/lib32
rm -r ${pkgdir}/usr/lib32/amdgpu-pro
rm -Rf ${pkgdir}/usr/share/doc ${pkgdir}/usr/include
}
package_libegl1-amdgpu-pro-dev () {
pkgdesc="implementation of the EGL API -- development files"
depends=('libegl1-amdgpu-pro=16.30.3.315407-2')
arch=('x86_64')
rm -Rf "${srcdir}"/libegl1-amdgpu-pro-dev_16.30.3-315407_amd64
mkdir "${srcdir}"/libegl1-amdgpu-pro-dev_16.30.3-315407_amd64
cd "${srcdir}"/libegl1-amdgpu-pro-dev_16.30.3-315407_amd64
ar x "${srcdir}"/amdgpu-pro-driver/./libegl1-amdgpu-pro-dev_16.30.3-315407_amd64.deb
tar -C "${pkgdir}" -xf data.tar.xz
if [ -d "${pkgdir}/usr/lib/x86_64-linux-gnu" ]; then
mkdir -p "${pkgdir}"/usr/lib
mv "${pkgdir}"/usr/lib/x86_64-linux-gnu/* "${pkgdir}"/usr/lib
rmdir "${pkgdir}"/usr/lib/x86_64-linux-gnu
fi
mv ${pkgdir}/usr/lib/amdgpu-pro/libEGL* ${pkgdir}/usr/lib
rm -r ${pkgdir}/usr/lib/amdgpu-pro
}
package_libgbm-amdgpu-pro-dev () {
pkgdesc="generic buffer management API -- development files"
depends=('libgbm1-amdgpu-pro=16.30.3.315407-2')
arch=('x86_64')
rm -Rf "${srcdir}"/libgbm-amdgpu-pro-dev_16.30.3-315407_amd64
mkdir "${srcdir}"/libgbm-amdgpu-pro-dev_16.30.3-315407_amd64
cd "${srcdir}"/libgbm-amdgpu-pro-dev_16.30.3-315407_amd64
ar x "${srcdir}"/amdgpu-pro-driver/./libgbm-amdgpu-pro-dev_16.30.3-315407_amd64.deb
tar -C "${pkgdir}" -xf data.tar.xz
if [ -d "${pkgdir}/usr/lib/x86_64-linux-gnu" ]; then
mkdir -p "${pkgdir}"/usr/lib
mv "${pkgdir}"/usr/lib/x86_64-linux-gnu/* "${pkgdir}"/usr/lib
rmdir "${pkgdir}"/usr/lib/x86_64-linux-gnu
fi
}
package_lib32-libgbm-amdgpu-pro-dev () {
pkgdesc="generic buffer management API -- development files"
depends=('lib32-libgbm1-amdgpu-pro=16.30.3.315407-2')
arch=('x86_64')
rm -Rf "${srcdir}"/libgbm-amdgpu-pro-dev_16.30.3-315407_i386
mkdir "${srcdir}"/libgbm-amdgpu-pro-dev_16.30.3-315407_i386
cd "${srcdir}"/libgbm-amdgpu-pro-dev_16.30.3-315407_i386
ar x "${srcdir}"/amdgpu-pro-driver/./libgbm-amdgpu-pro-dev_16.30.3-315407_i386.deb
tar -C "${pkgdir}" -xf data.tar.xz
if [ -d "${pkgdir}/usr/lib/i386-linux-gnu" ]; then
mkdir -p "${pkgdir}"/usr/lib32
mv "${pkgdir}"/usr/lib/i386-linux-gnu/* "${pkgdir}"/usr/lib32
rmdir "${pkgdir}"/usr/lib/i386-linux-gnu
fi
rm -Rf ${pkgdir}/usr/share/doc ${pkgdir}/usr/include
}
package_libgbm1-amdgpu-pro () {
pkgdesc="generic buffer management API -- runtime"
depends=('libdrm-amdgpu-pro-amdgpu1=16.30.3.315407-2' 'libdrm2-amdgpu-pro=16.30.3.315407-2')
arch=('x86_64')
rm -Rf "${srcdir}"/libgbm1-amdgpu-pro_16.30.3-315407_amd64
mkdir "${srcdir}"/libgbm1-amdgpu-pro_16.30.3-315407_amd64
cd "${srcdir}"/libgbm1-amdgpu-pro_16.30.3-315407_amd64
ar x "${srcdir}"/amdgpu-pro-driver/./libgbm1-amdgpu-pro_16.30.3-315407_amd64.deb
tar -C "${pkgdir}" -xf data.tar.xz
if [ -d "${pkgdir}/usr/lib/x86_64-linux-gnu" ]; then
mkdir -p "${pkgdir}"/usr/lib
mv "${pkgdir}"/usr/lib/x86_64-linux-gnu/* "${pkgdir}"/usr/lib
rmdir "${pkgdir}"/usr/lib/x86_64-linux-gnu
fi
}
package_lib32-libgbm1-amdgpu-pro () {
pkgdesc="generic buffer management API -- runtime"
depends=('lib32-libdrm-amdgpu-pro-amdgpu1=16.30.3.315407-2' 'lib32-libdrm2-amdgpu-pro=16.30.3.315407-2')
arch=('x86_64')
rm -Rf "${srcdir}"/libgbm1-amdgpu-pro_16.30.3-315407_i386
mkdir "${srcdir}"/libgbm1-amdgpu-pro_16.30.3-315407_i386
cd "${srcdir}"/libgbm1-amdgpu-pro_16.30.3-315407_i386
ar x "${srcdir}"/amdgpu-pro-driver/./libgbm1-amdgpu-pro_16.30.3-315407_i386.deb
tar -C "${pkgdir}" -xf data.tar.xz
if [ -d "${pkgdir}/usr/lib/i386-linux-gnu" ]; then
mkdir -p "${pkgdir}"/usr/lib32
mv "${pkgdir}"/usr/lib/i386-linux-gnu/* "${pkgdir}"/usr/lib32
rmdir "${pkgdir}"/usr/lib/i386-linux-gnu
fi
rm -Rf ${pkgdir}/usr/share/doc ${pkgdir}/usr/include
}
package_lib32-libgl1-amdgpu-pro-dev () {
pkgdesc="implementation of the OpenGL API -- GLX development files"
depends=('lib32-libgl1-amdgpu-pro-glx=16.30.3.315407-2')
arch=('x86_64')
rm -Rf "${srcdir}"/libgl1-amdgpu-pro-dev_16.30.3-315407_i386
mkdir "${srcdir}"/libgl1-amdgpu-pro-dev_16.30.3-315407_i386
cd "${srcdir}"/libgl1-amdgpu-pro-dev_16.30.3-315407_i386
ar x "${srcdir}"/amdgpu-pro-driver/./libgl1-amdgpu-pro-dev_16.30.3-315407_i386.deb
tar -C "${pkgdir}" -xf data.tar.xz
if [ -d "${pkgdir}/usr/lib/i386-linux-gnu" ]; then
mkdir -p "${pkgdir}"/usr/lib32
mv "${pkgdir}"/usr/lib/i386-linux-gnu/* "${pkgdir}"/usr/lib32
rmdir "${pkgdir}"/usr/lib/i386-linux-gnu
fi
mv ${pkgdir}/usr/lib32/amdgpu-pro/libGL* ${pkgdir}/usr/lib32
rm -r ${pkgdir}/usr/lib32/amdgpu-pro
rm -Rf ${pkgdir}/usr/share/doc ${pkgdir}/usr/include
}
package_libgl1-amdgpu-pro-dev () {
pkgdesc="implementation of the OpenGL API -- GLX development files"
depends=('libgl1-amdgpu-pro-glx=16.30.3.315407-2')
arch=('x86_64')
rm -Rf "${srcdir}"/libgl1-amdgpu-pro-dev_16.30.3-315407_amd64
mkdir "${srcdir}"/libgl1-amdgpu-pro-dev_16.30.3-315407_amd64
cd "${srcdir}"/libgl1-amdgpu-pro-dev_16.30.3-315407_amd64
ar x "${srcdir}"/amdgpu-pro-driver/./libgl1-amdgpu-pro-dev_16.30.3-315407_amd64.deb
tar -C "${pkgdir}" -xf data.tar.xz
if [ -d "${pkgdir}/usr/lib/x86_64-linux-gnu" ]; then
mkdir -p "${pkgdir}"/usr/lib
mv "${pkgdir}"/usr/lib/x86_64-linux-gnu/* "${pkgdir}"/usr/lib
rmdir "${pkgdir}"/usr/lib/x86_64-linux-gnu
fi
mv ${pkgdir}/usr/lib/amdgpu-pro/libGL* ${pkgdir}/usr/lib
rm -r ${pkgdir}/usr/lib/amdgpu-pro
}
package_lib32-libgl1-amdgpu-pro-dri () {
pkgdesc="implementation of the OpenGL API -- DRI modules"
depends=('lib32-libx11' 'lib32-libxext')
arch=('x86_64')
rm -Rf "${srcdir}"/libgl1-amdgpu-pro-dri_16.30.3-315407_i386
mkdir "${srcdir}"/libgl1-amdgpu-pro-dri_16.30.3-315407_i386
cd "${srcdir}"/libgl1-amdgpu-pro-dri_16.30.3-315407_i386
ar x "${srcdir}"/amdgpu-pro-driver/./libgl1-amdgpu-pro-dri_16.30.3-315407_i386.deb
tar -C "${pkgdir}" -xf data.tar.xz
if [ -d "${pkgdir}/usr/lib/i386-linux-gnu" ]; then
mkdir -p "${pkgdir}"/usr/lib32
mv "${pkgdir}"/usr/lib/i386-linux-gnu/* "${pkgdir}"/usr/lib32
rmdir "${pkgdir}"/usr/lib/i386-linux-gnu
fi
rm -Rf ${pkgdir}/usr/share/doc ${pkgdir}/usr/include
}
package_libgl1-amdgpu-pro-dri () {
pkgdesc="implementation of the OpenGL API -- DRI modules"
depends=('libx11' 'libxext')
arch=('x86_64')
rm -Rf "${srcdir}"/libgl1-amdgpu-pro-dri_16.30.3-315407_amd64
mkdir "${srcdir}"/libgl1-amdgpu-pro-dri_16.30.3-315407_amd64
cd "${srcdir}"/libgl1-amdgpu-pro-dri_16.30.3-315407_amd64
ar x "${srcdir}"/amdgpu-pro-driver/./libgl1-amdgpu-pro-dri_16.30.3-315407_amd64.deb
tar -C "${pkgdir}" -xf data.tar.xz
if [ -d "${pkgdir}/usr/lib/x86_64-linux-gnu" ]; then
mkdir -p "${pkgdir}"/usr/lib
mv "${pkgdir}"/usr/lib/x86_64-linux-gnu/* "${pkgdir}"/usr/lib
rmdir "${pkgdir}"/usr/lib/x86_64-linux-gnu
fi
}
package_libgl1-amdgpu-pro-glx () {
pkgdesc="implementation of the OpenGL API -- GLX runtime"
depends=('libdrm2-amdgpu-pro=16.30.3.315407-2' 'libx11>=1.4.99.1' 'libxcb>=1.8' 'libxcb' 'libxcb>=1.9.2' 'libxdamage>=1.1' 'libxext' 'libxfixes' 'libxshmfence' 'libxxf86vm')
arch=('x86_64')
rm -Rf "${srcdir}"/libgl1-amdgpu-pro-glx_16.30.3-315407_amd64
mkdir "${srcdir}"/libgl1-amdgpu-pro-glx_16.30.3-315407_amd64
cd "${srcdir}"/libgl1-amdgpu-pro-glx_16.30.3-315407_amd64
ar x "${srcdir}"/amdgpu-pro-driver/./libgl1-amdgpu-pro-glx_16.30.3-315407_amd64.deb
tar -C "${pkgdir}" -xf data.tar.xz
if [ -d "${pkgdir}/usr/lib/x86_64-linux-gnu" ]; then
mkdir -p "${pkgdir}"/usr/lib
mv "${pkgdir}"/usr/lib/x86_64-linux-gnu/* "${pkgdir}"/usr/lib
rmdir "${pkgdir}"/usr/lib/x86_64-linux-gnu
fi
mv ${pkgdir}/usr/lib/amdgpu-pro/libGL* ${pkgdir}/usr/lib
rm -r ${pkgdir}/usr/lib/amdgpu-pro
}
package_lib32-libgl1-amdgpu-pro-glx () {
pkgdesc="implementation of the OpenGL API -- GLX runtime"
depends=('lib32-libdrm2-amdgpu-pro=16.30.3.315407-2' 'lib32-libx11>=1.4.99.1' 'lib32-libxcb>=1.8' 'lib32-libxcb' 'lib32-libxcb>=1.9.2' 'lib32-libxdamage>=1.1' 'lib32-libxext' 'lib32-libxfixes' 'lib32-libxshmfence' 'lib32-libxxf86vm')
arch=('x86_64')
rm -Rf "${srcdir}"/libgl1-amdgpu-pro-glx_16.30.3-315407_i386
mkdir "${srcdir}"/libgl1-amdgpu-pro-glx_16.30.3-315407_i386
cd "${srcdir}"/libgl1-amdgpu-pro-glx_16.30.3-315407_i386
ar x "${srcdir}"/amdgpu-pro-driver/./libgl1-amdgpu-pro-glx_16.30.3-315407_i386.deb
tar -C "${pkgdir}" -xf data.tar.xz
if [ -d "${pkgdir}/usr/lib/i386-linux-gnu" ]; then
mkdir -p "${pkgdir}"/usr/lib32
mv "${pkgdir}"/usr/lib/i386-linux-gnu/* "${pkgdir}"/usr/lib32
rmdir "${pkgdir}"/usr/lib/i386-linux-gnu
fi
mv ${pkgdir}/usr/lib32/amdgpu-pro/libGL* ${pkgdir}/usr/lib32
rm -r ${pkgdir}/usr/lib32/amdgpu-pro
rm -Rf ${pkgdir}/usr/share/doc ${pkgdir}/usr/include
}
package_libgles2-amdgpu-pro () {
pkgdesc="implementation of the OpenGL|ES 2.x API -- runtime"
depends=('libegl1-amdgpu-pro=16.30.3.315407-2')
arch=('x86_64')
rm -Rf "${srcdir}"/libgles2-amdgpu-pro_16.30.3-315407_amd64
mkdir "${srcdir}"/libgles2-amdgpu-pro_16.30.3-315407_amd64
cd "${srcdir}"/libgles2-amdgpu-pro_16.30.3-315407_amd64
ar x "${srcdir}"/amdgpu-pro-driver/./libgles2-amdgpu-pro_16.30.3-315407_amd64.deb
tar -C "${pkgdir}" -xf data.tar.xz
if [ -d "${pkgdir}/usr/lib/x86_64-linux-gnu" ]; then
mkdir -p "${pkgdir}"/usr/lib
mv "${pkgdir}"/usr/lib/x86_64-linux-gnu/* "${pkgdir}"/usr/lib
rmdir "${pkgdir}"/usr/lib/x86_64-linux-gnu
fi
}
package_lib32-libgles2-amdgpu-pro () {
pkgdesc="implementation of the OpenGL|ES 2.x API -- runtime"
depends=('lib32-libegl1-amdgpu-pro=16.30.3.315407-2')
arch=('x86_64')
rm -Rf "${srcdir}"/libgles2-amdgpu-pro_16.30.3-315407_i386
mkdir "${srcdir}"/libgles2-amdgpu-pro_16.30.3-315407_i386
cd "${srcdir}"/libgles2-amdgpu-pro_16.30.3-315407_i386
ar x "${srcdir}"/amdgpu-pro-driver/./libgles2-amdgpu-pro_16.30.3-315407_i386.deb
tar -C "${pkgdir}" -xf data.tar.xz
if [ -d "${pkgdir}/usr/lib/i386-linux-gnu" ]; then
mkdir -p "${pkgdir}"/usr/lib32
mv "${pkgdir}"/usr/lib/i386-linux-gnu/* "${pkgdir}"/usr/lib32
rmdir "${pkgdir}"/usr/lib/i386-linux-gnu
fi
rm -Rf ${pkgdir}/usr/share/doc ${pkgdir}/usr/include
}
package_libgles2-amdgpu-pro-dev () {
pkgdesc="implementation of the OpenGL|ES 2.x API -- development files"
depends=('libgles2-amdgpu-pro=16.30.3.315407-2')
arch=('x86_64')
rm -Rf "${srcdir}"/libgles2-amdgpu-pro-dev_16.30.3-315407_amd64
mkdir "${srcdir}"/libgles2-amdgpu-pro-dev_16.30.3-315407_amd64
cd "${srcdir}"/libgles2-amdgpu-pro-dev_16.30.3-315407_amd64
ar x "${srcdir}"/amdgpu-pro-driver/./libgles2-amdgpu-pro-dev_16.30.3-315407_amd64.deb
tar -C "${pkgdir}" -xf data.tar.xz
if [ -d "${pkgdir}/usr/lib/x86_64-linux-gnu" ]; then
mkdir -p "${pkgdir}"/usr/lib
mv "${pkgdir}"/usr/lib/x86_64-linux-gnu/* "${pkgdir}"/usr/lib
rmdir "${pkgdir}"/usr/lib/x86_64-linux-gnu
fi
mv ${pkgdir}/usr/lib/amdgpu-pro/libGLES* ${pkgdir}/usr/lib
rm -r ${pkgdir}/usr/lib/amdgpu-pro
}
package_lib32-libgles2-amdgpu-pro-dev () {
pkgdesc="implementation of the OpenGL|ES 2.x API -- development files"
depends=('lib32-libgles2-amdgpu-pro=16.30.3.315407-2')
arch=('x86_64')
rm -Rf "${srcdir}"/libgles2-amdgpu-pro-dev_16.30.3-315407_i386
mkdir "${srcdir}"/libgles2-amdgpu-pro-dev_16.30.3-315407_i386
cd "${srcdir}"/libgles2-amdgpu-pro-dev_16.30.3-315407_i386
ar x "${srcdir}"/amdgpu-pro-driver/./libgles2-amdgpu-pro-dev_16.30.3-315407_i386.deb
tar -C "${pkgdir}" -xf data.tar.xz
if [ -d "${pkgdir}/usr/lib/i386-linux-gnu" ]; then
mkdir -p "${pkgdir}"/usr/lib32
mv "${pkgdir}"/usr/lib/i386-linux-gnu/* "${pkgdir}"/usr/lib32
rmdir "${pkgdir}"/usr/lib/i386-linux-gnu
fi
mv ${pkgdir}/usr/lib32/amdgpu-pro/libGLES* ${pkgdir}/usr/lib32
rm -r ${pkgdir}/usr/lib32/amdgpu-pro
rm -Rf ${pkgdir}/usr/share/doc ${pkgdir}/usr/include
}
package_lib32-libvdpau-amdgpu-pro () {
pkgdesc="AMDGPU Pro VDPAU driver"
depends=('lib32-libdrm-amdgpu-pro-amdgpu1=16.30.3.315407-2' 'lib32-libdrm>=2.4.31' 'lib32-libdrm2-amdgpu-pro=16.30.3.315407-2' 'lib32-openssl>=1.0.0' 'lib32-libx11' 'lib32-libxcb>=1.8' 'lib32-libxcb' 'lib32-zlib>=1.2.0')
arch=('x86_64')
rm -Rf "${srcdir}"/libvdpau-amdgpu-pro_16.30.3-315407_i386
mkdir "${srcdir}"/libvdpau-amdgpu-pro_16.30.3-315407_i386
cd "${srcdir}"/libvdpau-amdgpu-pro_16.30.3-315407_i386
ar x "${srcdir}"/amdgpu-pro-driver/./libvdpau-amdgpu-pro_16.30.3-315407_i386.deb
tar -C "${pkgdir}" -xf data.tar.xz
if [ -d "${pkgdir}/usr/lib/i386-linux-gnu" ]; then
mkdir -p "${pkgdir}"/usr/lib32
mv "${pkgdir}"/usr/lib/i386-linux-gnu/* "${pkgdir}"/usr/lib32
rmdir "${pkgdir}"/usr/lib/i386-linux-gnu
fi
rm -Rf ${pkgdir}/usr/share/doc ${pkgdir}/usr/include
}
package_libvdpau-amdgpu-pro () {
pkgdesc="AMDGPU Pro VDPAU driver"
depends=('libdrm-amdgpu-pro-amdgpu1=16.30.3.315407-2' 'libdrm>=2.4.31' 'libdrm2-amdgpu-pro=16.30.3.315407-2' 'openssl>=1.0.0' 'libx11' 'libxcb>=1.8' 'libxcb')
arch=('x86_64')
rm -Rf "${srcdir}"/libvdpau-amdgpu-pro_16.30.3-315407_amd64
mkdir "${srcdir}"/libvdpau-amdgpu-pro_16.30.3-315407_amd64
cd "${srcdir}"/libvdpau-amdgpu-pro_16.30.3-315407_amd64
ar x "${srcdir}"/amdgpu-pro-driver/./libvdpau-amdgpu-pro_16.30.3-315407_amd64.deb
tar -C "${pkgdir}" -xf data.tar.xz
if [ -d "${pkgdir}/usr/lib/x86_64-linux-gnu" ]; then
mkdir -p "${pkgdir}"/usr/lib
mv "${pkgdir}"/usr/lib/x86_64-linux-gnu/* "${pkgdir}"/usr/lib
rmdir "${pkgdir}"/usr/lib/x86_64-linux-gnu
fi
}
package_xserver-xorg-video-amdgpu-pro () {
pkgdesc="X.Org X server -- AMD/ATI Amdgpu-Pro display driver"
depends=('libdrm-amdgpu-pro-amdgpu1=16.30.3.315407-2' 'libdrm2-amdgpu-pro=16.30.3.315407-2' 'libepoxy>=1.0' 'libgbm1-amdgpu-pro=16.30.3.315407-2' 'libgl1-amdgpu-pro-glx=16.30.3.315407-2' 'libsystemd>=183' 'libx11' 'libxcb' 'libxdamage>=1.1' 'libxext' 'libxfixes' 'libxxf86vm' 'xorg-server')
arch=('x86_64')
rm -Rf "${srcdir}"/xserver-xorg-video-amdgpu-pro_16.30.3-315407_amd64
mkdir "${srcdir}"/xserver-xorg-video-amdgpu-pro_16.30.3-315407_amd64
cd "${srcdir}"/xserver-xorg-video-amdgpu-pro_16.30.3-315407_amd64
ar x "${srcdir}"/amdgpu-pro-driver/./xserver-xorg-video-amdgpu-pro_16.30.3-315407_amd64.deb
tar -C "${pkgdir}" -xf data.tar.xz
if [ -d "${pkgdir}/usr/lib/x86_64-linux-gnu" ]; then
mkdir -p "${pkgdir}"/usr/lib
mv "${pkgdir}"/usr/lib/x86_64-linux-gnu/* "${pkgdir}"/usr/lib
rmdir "${pkgdir}"/usr/lib/x86_64-linux-gnu
fi
conflicts=('xf86-video-amdgpu')
mkdir -p ${pkgdir}/usr/lib/x86_64-linux-gnu
# This is needed because libglx.so has a hardcoded DRI_DRIVER_PATH
ln -s /usr/lib/dri ${pkgdir}/usr/lib/x86_64-linux-gnu/dri
mv ${pkgdir}/usr/lib/amdgpu-pro/1.18/ ${pkgdir}/usr/lib/xorg
rm -r ${pkgdir}/usr/lib/amdgpu-pro
}