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
|
# $Id: PKGBUILD 44283 2011-04-05 06:25:28Z lcarlier $
# Maintainer : Laurent Carlier <lordheavym@gmail.com>
# Contributor: Biru Ionut <ionut@archlinux.ro>
# Contributor: Andrea Scarpino <andrea@archlinux.org>
# Contributor: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: Douglas Soares de Andrade <dsa@aur.archlinux.org>
# Contributor: Toni Foerster <stonerl@skeps.de>
pkgbase="gambas2"
pkgname=('gambas2-meta' 'gambas2-runtime' 'gambas2-devel' 'gambas2-ide' 'gambas2-examples' 'gambas2-help'
'gambas2-script' 'gambas2-gb-chart' 'gambas2-gb-compress' 'gambas2-gb-corba' 'gambas2-gb-crypt'
'gambas2-gb-db' 'gambas2-gb-db-firebird' 'gambas2-gb-db-form' 'gambas2-gb-db-mysql'
'gambas2-gb-db-odbc' 'gambas2-gb-db-postgresql' 'gambas2-gb-db-sqlite2' 'gambas2-gb-db-sqlite3'
'gambas2-gb-desktop' 'gambas2-gb-form' 'gambas2-gb-form-dialog' 'gambas2-gb-form-mdi'
'gambas2-gb-gtk' 'gambas2-gb-gtk-ext' 'gambas2-gb-gtk-svg' 'gambas2-gb-gui'
'gambas2-gb-image' 'gambas2-gb-info' 'gambas2-gb-net' 'gambas2-gb-net-curl'
'gambas2-gb-net-smtp' 'gambas2-gb-opengl' 'gambas2-gb-option' 'gambas2-gb-pcre'
'gambas2-gb-pdf' 'gambas2-gb-qt' 'gambas2-gb-qt-ext' 'gambas2-gb-qt-opengl'
'gambas2-gb-qt-kde' 'gambas2-gb-qt-kde-html' 'gambas2-gb-report' 'gambas2-gb-sdl'
'gambas2-gb-sdl-sound' 'gambas2-gb-settings' 'gambas2-gb-v4l' 'gambas2-gb-vb'
'gambas2-gb-web' 'gambas2-gb-xml' 'gambas2-gb-xml-rpc' 'gambas2-gb-xml-xslt')
pkgver=2.23.0
pkgrel=1
pkgdesc="A free development environment based on a Basic interpreter."
arch=('i686' 'x86_64')
url="http://gambas.sourceforge.net"
depends=('libffi' 'bzip2' 'libfbclient' 'zlib' 'kdelibs3' 'libgl' 'gtk2' 'librsvg' 'xdg-utils'
'postgresql-libs>=8.4.1' 'libmysqlclient' 'unixodbc' 'sqlite2' 'sqlite3'
'curl' 'poppler' 'sdl_mixer' 'sdl_image' 'libxtst' 'pcre' 'omniorb' 'libxft'
'libxcursor' 'libsm')
makedepends=('intltool' 'mysql' 'postgresql')
license=('GPL2')
options=('!emptydirs' '!makeflags')
groups=('gambas2')
replaces=('gambas2')
conflicts=('gambas2')
source=(http://downloads.sourceforge.net/gambas/$pkgbase-$pkgver.tar.bz2
'fix-gbi-gba-path.patch' 'gambas2-script.install'
'gambas2-runtime.install')
md5sums=('f777cfe187ba58c176f90a85e33a9758'
'9dda03a1bbfb7e7ba8b6a4ae91b6752b'
'870ff5b4b33cd75aa9c290539e6fdd5d'
'ab5667175c4945282d2f40a35d0e9e5b')
_gbfiles="${srcdir}/$pkgbase-$pkgver/main/gbc"
_buildgbcomp() {
cd ${srcdir}/${pkgbase}-${pkgver}/comp/src/$1
${srcdir}/${pkgbase}-${pkgver}/main/gbc/gbc2 -ag -r ${pkgdir}/usr
${srcdir}/${pkgbase}-${pkgver}/main/gbc/gba2
install $1.gambas ${pkgdir}/usr/lib/gambas2/
install .component ${pkgdir}/usr/lib/gambas2/$1.component
chmod a-x ${pkgdir}/usr/lib/gambas2/$1.component
install .info ${pkgdir}/usr/share/gambas2/info/$1.info
chmod a-x ${pkgdir}/usr/share/gambas2/info/$1.info
install .list ${pkgdir}/usr/share/gambas2/info/$1.list
chmod a-x ${pkgdir}/usr/share/gambas2/info/$1.list
if test -d control; then
install -d ${pkgdir}/usr/share/gambas2/control/$1
install control/*.png ${pkgdir}/usr/share/gambas2/control/$1
chmod a-x ${pkgdir}/usr/share/gambas2/control/$1/*.png
fi
}
build() {
cd "${srcdir}/$pkgbase-$pkgver"
## workaround to allow package splitting
msg "Applying patches ..."
patch -Np1 -i "${srcdir}/fix-gbi-gba-path.patch"
./reconf-all
##
. /etc/profile.d/kde3.sh
. /etc/profile.d/qt3.sh
./configure -C --disable-qte --prefix=/usr
make bindir=${pkgdir}/usr/bin
}
package_gambas2-meta() {
depends=('gambas2-runtime' 'gambas2-devel' 'gambas2-ide' 'gambas2-examples' 'gambas2-help'
'gambas2-script' 'gambas2-gb-chart' 'gambas2-gb-compress' 'gambas2-gb-corba' 'gambas2-gb-crypt'
'gambas2-gb-db' 'gambas2-gb-db-firebird' 'gambas2-gb-db-form' 'gambas2-gb-db-mysql'
'gambas2-gb-db-odbc' 'gambas2-gb-db-postgresql' 'gambas2-gb-db-sqlite2' 'gambas2-gb-db-sqlite3'
'gambas2-gb-desktop' 'gambas2-gb-form' 'gambas2-gb-form-dialog' 'gambas2-gb-form-mdi'
'gambas2-gb-gtk' 'gambas2-gb-gtk-ext' 'gambas2-gb-gtk-svg' 'gambas2-gb-gui'
'gambas2-gb-image' 'gambas2-gb-info' 'gambas2-gb-net' 'gambas2-gb-net-curl'
'gambas2-gb-net-smtp' 'gambas2-gb-opengl' 'gambas2-gb-option' 'gambas2-gb-pcre'
'gambas2-gb-pdf' 'gambas2-gb-qt' 'gambas2-gb-qt-ext' 'gambas2-gb-qt-opengl'
'gambas2-gb-qt-kde' 'gambas2-gb-qt-kde-html' 'gambas2-gb-report' 'gambas2-gb-sdl'
'gambas2-gb-sdl-sound' 'gambas2-gb-settings' 'gambas2-gb-v4l' 'gambas2-gb-vb'
'gambas2-gb-web' 'gambas2-gb-xml' 'gambas2-gb-xml-rpc' 'gambas2-gb-xml-xslt')
pkgdesc="Gambas2 meta package"
}
package_gambas2-runtime() {
depends=('libffi' 'xdg-utils')
pkgdesc="Gambas2 runtime environment"
install=gambas2-runtime.install
cd ${srcdir}/${pkgbase}-${pkgver}/main/gbx
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
cd ${srcdir}/${pkgbase}-${pkgver}/main/lib/debug
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
cd ${srcdir}/${pkgbase}-${pkgver}/main/lib/eval
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
cd ${srcdir}/${pkgbase}-${pkgver}/main/lib/draw
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
install -D -m644 ${srcdir}/${pkgbase}-${pkgver}/main/lib/gb.component \
${pkgdir}/usr/lib/gambas2
ln -s gbx2 ${pkgdir}/usr/bin/gbr2
${srcdir}/${pkgbase}-${pkgver}/main/gbc/gbi2 -r ${pkgdir}/usr gb
rm -f ${pkgdir}/usr/lib/gambas2/gb.{so*,la}
## needed for postinst with xdg-utils
install -d -m755 ${pkgdir}/usr/share/gambas2/mime
install -D -m644 ${srcdir}/${pkgbase}-${pkgver}/main/mime/* \
${pkgdir}/usr/share/gambas2/mime/
install -d -m755 ${pkgdir}/usr/share/gambas2/icons
install -D -m644 ${srcdir}/${pkgbase}-${pkgver}/main/mime/application-x-gambas.png \
${pkgdir}/usr/share/gambas2/icons/application-x-gambas.png
}
package_gambas2-devel() {
depends=('gambas2-runtime')
pkgdesc="Gambas2 development environment"
cd ${srcdir}/${pkgbase}-${pkgver}/main/gbc
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
}
package_gambas2-ide() {
depends=('gambas2-gb-qt-ext' 'gambas2-gb-form-dialog' 'gambas2-gb-form-mdi' 'gambas2-gb-settings'
'gambas2-gb-db' 'gambas2-gb-desktop' 'gambas2-devel')
pkgdesc="Gambas2 Integrated Development Environment"
# arch=('any')
## workaround for splitting
cd ${srcdir}/${pkgbase}-${pkgver}/main/gbx
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
cd ${srcdir}/${pkgbase}-${pkgver}/main/lib/eval
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
cd ${srcdir}/${pkgbase}-${pkgver}/main/lib/debug
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
${srcdir}/${pkgbase}-${pkgver}/main/gbc/gbi2 -r ${pkgdir}/usr gb
cd ${srcdir}/${pkgbase}-${pkgver}/main/lib/draw
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
${srcdir}/${pkgbase}-${pkgver}/main/gbc/gbi2 -r ${pkgdir}/usr gb
cd ${srcdir}/${pkgbase}-${pkgver}/gb.qt
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
cd ${srcdir}/${pkgbase}-${pkgver}/main/lib/db
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
cd ${srcdir}/${pkgbase}-${pkgver}/main/lib/gui
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
${srcdir}/${pkgbase}-${pkgver}/main/gbc/gbi2 -r ${pkgdir}/usr
_buildgbcomp gb.form
_buildgbcomp gb.form.dialog
_buildgbcomp gb.form.mdi
_buildgbcomp gb.settings
##
cd ${srcdir}/${pkgbase}-${pkgver}/app/src/gambas2
${srcdir}/${pkgbase}-${pkgver}/main/gbc/gbc2 -ag -r ${pkgdir}/usr
${srcdir}/${pkgbase}-${pkgver}/main/gbc/gba2
cd ${srcdir}/${pkgbase}-${pkgver}/app/src/gambas2-database-manager
${srcdir}/${pkgbase}-${pkgver}/main/gbc/gbc2 -ag -r ${pkgdir}/usr
${srcdir}/${pkgbase}-${pkgver}/main/gbc/gba2
cd ${srcdir}/${pkgbase}-${pkgver}/app/src/
## cleanup the workaround
rm -r ${pkgdir}/usr/share ${pkgdir}/usr/lib
rm ${pkgdir}/usr/bin/gbx2
##
install -m755 gambas2/gambas2.gambas ${pkgdir}/usr/bin
install -m755 gambas2-database-manager/gambas2-database-manager.gambas ${pkgdir}/usr/bin
ln -s gambas2.gambas ${pkgdir}/usr/bin/gambas2
install -D -m644 ${srcdir}/${pkgbase}-${pkgver}/app/desktop/gambas2.desktop \
${pkgdir}/usr/share/applications/gambas2.desktop
install -D -m644 ${srcdir}/${pkgbase}-${pkgver}/app/desktop/gambas2.png \
${pkgdir}/usr/share/pixmaps/gambas2.png
}
package_gambas2-examples() {
depends=('gambas2-gb-compress' 'gambas2-gb-corba' 'gambas2-gb-crypt'
'gambas2-gb-db-firebird' 'gambas2-gb-db-form' 'gambas2-gb-db-mysql'
'gambas2-gb-db-odbc' 'gambas2-gb-db-postgresql' 'gambas2-gb-db-sqlite2' 'gambas2-gb-db-sqlite3'
'gambas2-gb-desktop' 'gambas2-gb-form-dialog' 'gambas2-gb-form-mdi'
'gambas2-gb-gtk-ext' 'gambas2-gb-gtk-svg' 'gambas2-gb-gui'
'gambas2-gb-image' 'gambas2-gb-info' 'gambas2-gb-net' 'gambas2-gb-net-curl'
'gambas2-gb-net-smtp' 'gambas2-gb-opengl' 'gambas2-gb-option' 'gambas2-gb-pcre'
'gambas2-gb-pdf' 'gambas2-gb-qt-ext' 'gambas2-gb-qt-opengl'
'gambas2-gb-qt-kde-html' 'gambas2-gb-report' 'gambas2-gb-sdl'
'gambas2-gb-sdl-sound' 'gambas2-gb-settings' 'gambas2-gb-v4l' 'gambas2-gb-vb'
'gambas2-gb-web' 'gambas2-gb-xml-rpc' 'gambas2-gb-xml-xslt')
pkgdesc="Gambas2 examples"
# arch=('any')
cd ${srcdir}/${pkgbase}-${pkgver}
make XDG_UTILS='' DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
rm -r ${pkgdir}/usr/bin ${pkgdir}/usr/lib
rm -r ${pkgdir}/usr/share/gambas2/{help,info}
}
package_gambas2-help() {
depends=()
pkgdesc="Gambas2 help files"
# arch=('any')
cd ${srcdir}/${pkgbase}-${pkgver}/help
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
#fix help
chown root:root -R ${pkgdir}/usr/share/gambas2/help/help
}
package_gambas2-script() {
depends=('gambas2-devel')
pkgdesc="Gambas2 scripter and server programs support"
install=gambas2-script.install
# arch=('any')
## workaround for splitting
cd ${srcdir}/${pkgbase}-${pkgver}/main/gbx
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
cd ${srcdir}/${pkgbase}-${pkgver}/main/lib/eval
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
${srcdir}/${pkgbase}-${pkgver}/main/gbc/gbi2 -r ${pkgdir}/usr gb
##
cd ${srcdir}/${pkgbase}-${pkgver}/app/src/gbs2
${srcdir}/${pkgbase}-${pkgver}/main/gbc/gbc2 -ag -r ${pkgdir}/usr
${srcdir}/${pkgbase}-${pkgver}/main/gbc/gba2
install -m755 gbs2.gambas ${pkgdir}/usr/bin
ln -s gbs2.gambas ${pkgdir}/usr/bin/gbs2
ln -s gbs2.gambas ${pkgdir}/usr/bin/gbw2
## cleanup the workaround
rm -r ${pkgdir}/usr/share ${pkgdir}/usr/lib
rm ${pkgdir}/usr/bin/gbx2
##
## needed for postinst with xdg-utils
cd ${srcdir}/${pkgbase}-${pkgver}/app/mime
install -d -m755 ${pkgdir}/usr/share/gambas2/mime
install -D -m644 *.xml ${pkgdir}/usr/share/gambas2/mime/
install -D -m644 *.png ${pkgdir}/usr/share/gambas2/mime/
##
}
package_gambas2-gb-chart() {
depends=('gambas2-gb-form')
pkgdesc="Gambas2 chart component"
# arch=('any')
## workaround for splitting
cd ${srcdir}/${pkgbase}-${pkgver}/main/gbx
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
mkdir -p ${pkgdir}/usr/share/gambas2/info
cd ${srcdir}/${pkgbase}-${pkgver}/main/lib/draw
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
${srcdir}/${pkgbase}-${pkgver}/main/gbc/gbi2 -r ${pkgdir}/usr gb
cd ${srcdir}/${pkgbase}-${pkgver}/gb.qt
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
cd ${srcdir}/${pkgbase}-${pkgver}/main/lib/gui
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
${srcdir}/${pkgbase}-${pkgver}/main/gbc/gbi2 -r ${pkgdir}/usr
##
_buildgbcomp gb.form
_buildgbcomp gb.chart
## cleanup the workaround
rm ${pkgdir}/usr/share/gambas2/info/{gb.{info,list},gb.qt*,gb.gui*,gb.form*}
rm ${pkgdir}/usr/lib/gambas2/{gb.draw*,gb.qt*,gb.{so*,la},gb.gui*,gb.form*}
rm -rf ${pkgdir}/usr/bin
##
}
package_gambas2-gb-compress() {
depends=('gambas2-runtime' 'bzip2' 'zlib')
pkgdesc="Gambas2 compression support component"
cd ${srcdir}/${pkgbase}-${pkgver}/main/lib/compress
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
cd ${srcdir}/${pkgbase}-${pkgver}/gb.compress.bzlib2
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
cd ${srcdir}/${pkgbase}-${pkgver}/gb.compress.zlib
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
}
package_gambas2-gb-corba() {
depends=('gambas2-runtime' 'omniorb')
pkgdesc="Gambas2 corba component"
cd ${srcdir}/${pkgbase}-${pkgver}/gb.corba
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
}
package_gambas2-gb-crypt() {
depends=('gambas2-runtime')
pkgdesc="Gambas2 MD5/DES crypting component"
cd ${srcdir}/${pkgbase}-${pkgver}/gb.crypt
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
}
package_gambas2-gb-db() {
depends=('gambas2-runtime')
pkgdesc="Gambas2 database access component"
cd ${srcdir}/${pkgbase}-${pkgver}/main/lib/db
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
}
package_gambas2-gb-db-firebird() {
depends=('gambas2-gb-db' 'libfbclient')
pkgdesc="Gambas2 Firebird database access component"
cd ${srcdir}/${pkgbase}-${pkgver}/gb.db.firebird
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
}
package_gambas2-gb-db-form() {
depends=('gambas2-gb-db' 'gambas2-gb-form')
pkgdesc="Gambas2 database form component"
# arch=('any')
## workaround for splitting
cd ${srcdir}/${pkgbase}-${pkgver}/main/gbx
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
mkdir -p ${pkgdir}/usr/share/gambas2/info
cd ${srcdir}/${pkgbase}-${pkgver}/main/lib/draw
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
${srcdir}/${pkgbase}-${pkgver}/main/gbc/gbi2 -r ${pkgdir}/usr gb
cd ${srcdir}/${pkgbase}-${pkgver}/gb.qt
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
cd ${srcdir}/${pkgbase}-${pkgver}/main/lib/gui
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
cd ${srcdir}/${pkgbase}-${pkgver}/main/lib/db
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
${srcdir}/${pkgbase}-${pkgver}/main/gbc/gbi2 -r ${pkgdir}/usr
##
_buildgbcomp gb.db.form
## cleanup the workaround
rm ${pkgdir}/usr/share/gambas2/info/{gb.{info,list},gb.qt*,gb.gui*,gb.db.{info,list}}
rm ${pkgdir}/usr/lib/gambas2/{gb.draw*,gb.qt*,gb.{so*,la},gb.gui*,gb.db.{so*,la,component}}
rm -rf ${pkgdir}/usr/bin
##
}
package_gambas2-gb-db-mysql() {
depends=('gambas2-gb-db' 'libmysqlclient')
pkgdesc="Gambas2 MySQL database access component"
cd ${srcdir}/${pkgbase}-${pkgver}/gb.db.mysql
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
}
package_gambas2-gb-db-odbc() {
depends=('gambas2-gb-db' 'unixodbc')
pkgdesc="Gambas2 ODBC database access component"
cd ${srcdir}/${pkgbase}-${pkgver}/gb.db.odbc
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
}
package_gambas2-gb-db-postgresql() {
depends=('gambas2-gb-db' 'postgresql-libs>=8.4.1')
pkgdesc="Gambas2 PostgreSQL database access component"
cd ${srcdir}/${pkgbase}-${pkgver}/gb.db.postgresql
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
}
package_gambas2-gb-db-sqlite2() {
depends=('gambas2-gb-db' 'sqlite2')
pkgdesc="Gambas2 Sqlite2 database access component"
cd ${srcdir}/${pkgbase}-${pkgver}/gb.db.sqlite2
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
}
package_gambas2-gb-db-sqlite3() {
depends=('gambas2-gb-db' 'sqlite3')
pkgdesc="Gambas2 Sqlite3 database access component"
cd ${srcdir}/${pkgbase}-${pkgver}/gb.db.sqlite3
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
}
package_gambas2-gb-desktop() {
depends=('gambas2-runtime' 'libsm' 'libxtst')
pkgdesc="Gambas2 desktop component"
## workaround for splitting
cd ${srcdir}/${pkgbase}-${pkgver}/main/gbx
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
mkdir -p ${pkgdir}/usr/share/gambas2/info
${srcdir}/${pkgbase}-${pkgver}/main/gbc/gbi2 -r ${pkgdir}/usr gb
cd ${srcdir}/${pkgbase}-${pkgver}/main/lib/draw
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
${srcdir}/${pkgbase}-${pkgver}/main/gbc/gbi2 -r ${pkgdir}/usr gb
cd ${srcdir}/${pkgbase}-${pkgver}/gb.qt
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
##
cd ${srcdir}/${pkgbase}-${pkgver}/gb.desktop
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
## cleanup the workaround
rm ${pkgdir}/usr/share/gambas2/info/{gb.{info,list},gb.qt*}
rm ${pkgdir}/usr/lib/gambas2/{gb.{so*,la},gb.qt*,gb.draw*}
rm -rf ${pkgdir}/usr/bin
##
}
package_gambas2-gb-form() {
depends=('gambas2-gb-gui')
pkgdesc="Gambas2 form component"
# arch=('any')
## workaround for splitting
cd ${srcdir}/${pkgbase}-${pkgver}/main/gbx
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
mkdir -p ${pkgdir}/usr/share/gambas2/info
cd ${srcdir}/${pkgbase}-${pkgver}/main/lib/draw
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
${srcdir}/${pkgbase}-${pkgver}/main/gbc/gbi2 -r ${pkgdir}/usr gb
cd ${srcdir}/${pkgbase}-${pkgver}/gb.qt
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
cd ${srcdir}/${pkgbase}-${pkgver}/main/lib/gui
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
${srcdir}/${pkgbase}-${pkgver}/main/gbc/gbi2 -r ${pkgdir}/usr
##
_buildgbcomp gb.form
## cleanup the workaround
rm ${pkgdir}/usr/share/gambas2/info/{gb.{info,list},gb.qt*,gb.gui*}
rm ${pkgdir}/usr/lib/gambas2/{gb.draw*,gb.qt*,gb.{so*,la},gb.gui*}
rm -rf ${pkgdir}/usr/bin
##
}
package_gambas2-gb-form-dialog() {
depends=('gambas2-gb-form')
pkgdesc="Gambas2 form dialog component"
# arch=('any')
## workaround for splitting
cd ${srcdir}/${pkgbase}-${pkgver}/main/gbx
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
mkdir -p ${pkgdir}/usr/share/gambas2/info
cd ${srcdir}/${pkgbase}-${pkgver}/main/lib/draw
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
${srcdir}/${pkgbase}-${pkgver}/main/gbc/gbi2 -r ${pkgdir}/usr gb
cd ${srcdir}/${pkgbase}-${pkgver}/gb.qt
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
cd ${srcdir}/${pkgbase}-${pkgver}/main/lib/gui
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
${srcdir}/${pkgbase}-${pkgver}/main/gbc/gbi2 -r ${pkgdir}/usr
##
_buildgbcomp gb.form
_buildgbcomp gb.form.dialog
## cleanup the workaround
rm ${pkgdir}/usr/share/gambas2/info/{gb.{info,list},gb.form.{info,list},gb.qt*,gb.gui*}
rm ${pkgdir}/usr/lib/gambas2/{gb.draw*,gb.qt*,gb.{so*,la},gb.form.{component,gambas},gb.gui*}
rm -rf ${pkgdir}/usr/bin
##
}
package_gambas2-gb-form-mdi() {
depends=('gambas2-gb-form')
pkgdesc="Gambas2 form MDI component"
# arch=('any')
## workaround for splitting
cd ${srcdir}/${pkgbase}-${pkgver}/main/gbx
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
mkdir -p ${pkgdir}/usr/share/gambas2/info
cd ${srcdir}/${pkgbase}-${pkgver}/main/lib/draw
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
${srcdir}/${pkgbase}-${pkgver}/main/gbc/gbi2 -r ${pkgdir}/usr gb
cd ${srcdir}/${pkgbase}-${pkgver}/gb.qt
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
cd ${srcdir}/${pkgbase}-${pkgver}/main/lib/gui
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
${srcdir}/${pkgbase}-${pkgver}/main/gbc/gbi2 -r ${pkgdir}/usr
##
_buildgbcomp gb.form
_buildgbcomp gb.form.mdi
## cleanup the workaround
rm ${pkgdir}/usr/share/gambas2/info/{gb.{info,list},gb.form.{info,list},gb.qt*,gb.gui*}
rm ${pkgdir}/usr/lib/gambas2/{gb.draw*,gb.qt*,gb.{so*,la},gb.form.{component,gambas},gb.gui*}
rm -rf ${pkgdir}/usr/bin
##
}
package_gambas2-gb-gtk() {
depends=('gambas2-runtime' 'gtk2')
pkgdesc="Gambas2 graphical GTK+ toolkit component"
## workaround for splitting
cd ${srcdir}/${pkgbase}-${pkgver}/main/gbx
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
mkdir -p ${pkgdir}/usr/share/gambas2/info
cd ${srcdir}/${pkgbase}-${pkgver}/main/lib/draw
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
${srcdir}/${pkgbase}-${pkgver}/main/gbc/gbi2 -r ${pkgdir}/usr gb
##
cd ${srcdir}/${pkgbase}-${pkgver}/gb.gtk
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
## cleanup the workaround
rm ${pkgdir}/usr/share/gambas2/info/{gb.{info,list},gb.gtk.ext*}
rm ${pkgdir}/usr/lib/gambas2/{gb.draw*,gb.gtk.ext*,gb.{so*,la}}
rm -rf ${pkgdir}/usr/bin
##
}
package_gambas2-gb-gtk-ext() {
depends=('gambas2-gb-gtk')
pkgdesc="Gambas2 graphical GTK+ toolkit extension component"
## workaround for splitting
cd ${srcdir}/${pkgbase}-${pkgver}/main/gbx
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
mkdir -p ${pkgdir}/usr/share/gambas2/info
${srcdir}/${pkgbase}-${pkgver}/main/gbc/gbi2 -r ${pkgdir}/usr gb
##
cd ${srcdir}/${pkgbase}-${pkgver}/gb.gtk/src/ext
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
## cleanup the workaround
rm ${pkgdir}/usr/share/gambas2/info/gb.{info,list}
rm ${pkgdir}/usr/lib/gambas2/gb.{so*,la}
rm -rf ${pkgdir}/usr/bin
##
}
package_gambas2-gb-gtk-svg() {
depends=('gambas2-gb-gtk' 'librsvg')
pkgdesc="Gambas2 graphical GTK+ toolkit svg component"
## workaround for splitting
cd ${srcdir}/${pkgbase}-${pkgver}/main/gbx
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
mkdir -p ${pkgdir}/usr/share/gambas2/info
${srcdir}/${pkgbase}-${pkgver}/main/gbc/gbi2 -r ${pkgdir}/usr gb
##
cd ${srcdir}/${pkgbase}-${pkgver}/gb.gtk.svg
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
## cleanup the workaround
rm ${pkgdir}/usr/share/gambas2/info/gb.{info,list}
rm ${pkgdir}/usr/lib/gambas2/gb.{so*,la}
rm -rf ${pkgdir}/usr/bin
##
}
package_gambas2-gb-gui() {
depends=('gambas2-gb-qt' 'gambas2-gb-gtk')
pkgdesc="Gambas2 automatic gui toolkit chooser"
## workaround for splitting
cd ${srcdir}/${pkgbase}-${pkgver}/main/gbx
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
mkdir -p ${pkgdir}/usr/share/gambas2/info
cd ${srcdir}/${pkgbase}-${pkgver}/main/lib/draw
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
${srcdir}/${pkgbase}-${pkgver}/main/gbc/gbi2 -r ${pkgdir}/usr gb
cd ${srcdir}/${pkgbase}-${pkgver}/gb.qt
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
##
cd ${srcdir}/${pkgbase}-${pkgver}/main/lib/gui
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
## cleanup the workaround
rm ${pkgdir}/usr/share/gambas2/info/{gb.{info,list},gb.qt*}
rm ${pkgdir}/usr/lib/gambas2/{gb.draw*,gb.qt*,gb.{so*,la}}
rm -rf ${pkgdir}/usr/bin
##
}
package_gambas2-gb-image() {
depends=('gambas2-runtime')
pkgdesc="Gambas2 image processing component"
cd ${srcdir}/${pkgbase}-${pkgver}/gb.image
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
}
package_gambas2-gb-info() {
depends=('gambas2-runtime')
pkgdesc="Gambas2 info component"
# arch=('any')
## workaround for splitting
cd ${srcdir}/${pkgbase}-${pkgver}/main/gbx
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
mkdir -p ${pkgdir}/usr/share/gambas2/info
${srcdir}/${pkgbase}-${pkgver}/main/gbc/gbi2 -r ${pkgdir}/usr gb
##
_buildgbcomp gb.info
## cleanup the workaround
rm ${pkgdir}/usr/share/gambas2/info/gb.{info,list}
rm ${pkgdir}/usr/lib/gambas2/gb.{so*,la}
rm -rf ${pkgdir}/usr/bin
##
}
package_gambas2-gb-net() {
depends=('gambas2-runtime')
pkgdesc="Gambas2 networking component"
cd ${srcdir}/${pkgbase}-${pkgver}/gb.net
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
}
package_gambas2-gb-net-curl() {
depends=('gambas2-runtime' 'curl')
pkgdesc="Gambas2 advanced networking component"
cd ${srcdir}/${pkgbase}-${pkgver}/gb.net.curl
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
}
package_gambas2-gb-net-smtp() {
depends=('gambas2-runtime' 'glib2')
pkgdesc="Gambas2 SMTP component"
cd ${srcdir}/${pkgbase}-${pkgver}/gb.net.smtp
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
}
package_gambas2-gb-opengl() {
depends=('gambas2-runtime' 'libgl' 'mesa')
pkgdesc="Gambas2 OpenGL component"
cd ${srcdir}/${pkgbase}-${pkgver}/gb.opengl
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
}
package_gambas2-gb-option() {
depends=('gambas2-runtime')
pkgdesc="Gambas2 command-line options component"
cd ${srcdir}/${pkgbase}-${pkgver}/main/lib/option
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
}
package_gambas2-gb-pcre() {
depends=('gambas2-runtime' 'pcre')
pkgdesc="Gambas2 PCRE component"
cd ${srcdir}/${pkgbase}-${pkgver}/gb.pcre
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
}
package_gambas2-gb-pdf() {
depends=('gambas2-runtime' 'poppler')
pkgdesc="Gambas2 PDF component"
cd ${srcdir}/${pkgbase}-${pkgver}/gb.pdf
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
}
package_gambas2-gb-qt() {
depends=('gambas2-runtime' 'qt3')
pkgdesc="Gambas2 graphical QT toolkit component"
## workaround for splitting
cd ${srcdir}/${pkgbase}-${pkgver}/main/gbx
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
mkdir -p ${pkgdir}/usr/share/gambas2/info
cd ${srcdir}/${pkgbase}-${pkgver}/main/lib/draw
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
${srcdir}/${pkgbase}-${pkgver}/main/gbc/gbi2 -r ${pkgdir}/usr gb
##
cd ${srcdir}/${pkgbase}-${pkgver}/gb.qt
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
## cleanup the workaround
rm ${pkgdir}/usr/share/gambas2/info/{gb.{info,list},gb.qt.ext*,gb.qt.opengl*}
rm ${pkgdir}/usr/lib/gambas2/{gb.draw*,gb.qt.ext*,gb.qt.opengl*,gb.{so*,la}}
rm -rf ${pkgdir}/usr/bin
##
}
package_gambas2-gb-qt-ext() {
depends=('gambas2-gb-qt')
pkgdesc="Gambas2 graphical QT toolkit extension component"
## workaround for splitting
cd ${srcdir}/${pkgbase}-${pkgver}/main/gbx
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
mkdir -p ${pkgdir}/usr/share/gambas2/info
${srcdir}/${pkgbase}-${pkgver}/main/gbc/gbi2 -r ${pkgdir}/usr gb
##
cd ${srcdir}/${pkgbase}-${pkgver}/gb.qt/src/ext
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
## cleanup the workaround
rm ${pkgdir}/usr/share/gambas2/info/gb.{info,list}
rm ${pkgdir}/usr/lib/gambas2/gb.{so*,la}
rm -rf ${pkgdir}/usr/bin
##
}
package_gambas2-gb-qt-opengl() {
depends=('gambas2-gb-qt' 'libgl')
pkgdesc="Gambas2 graphical QT toolkit OpenGL component"
## workaround for splitting
cd ${srcdir}/${pkgbase}-${pkgver}/main/gbx
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
mkdir -p ${pkgdir}/usr/share/gambas2/info
${srcdir}/${pkgbase}-${pkgver}/main/gbc/gbi2 -r ${pkgdir}/usr gb
##
cd ${srcdir}/${pkgbase}-${pkgver}/gb.qt/src/opengl
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
## cleanup the workaround
rm ${pkgdir}/usr/share/gambas2/info/gb.{info,list}
rm ${pkgdir}/usr/lib/gambas2/gb.{so*,la}
rm -rf ${pkgdir}/usr/bin
##
}
package_gambas2-gb-qt-kde() {
depends=('gambas2-gb-qt' 'kdelibs3')
pkgdesc="Gambas2 KDE component"
cd ${srcdir}/${pkgbase}-${pkgver}/gb.qt.kde
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
rm ${pkgdir}/usr/share/gambas2/info/gb.qt.kde.html*
rm ${pkgdir}/usr/lib/gambas2/gb.qt.kde.html*
}
package_gambas2-gb-qt-kde-html() {
depends=('gambas2-gb-qt-kde')
pkgdesc="Gambas2 KHTML component"
cd ${srcdir}/${pkgbase}-${pkgver}/gb.qt.kde/src/html
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
}
package_gambas2-gb-report() {
depends=('gambas2-runtime' 'gambas2-gb-form')
pkgdesc="Gambas2 report component"
# arch=('any')
## workaround for splitting
cd ${srcdir}/${pkgbase}-${pkgver}/main/gbx
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
mkdir -p ${pkgdir}/usr/share/gambas2/info
cd ${srcdir}/${pkgbase}-${pkgver}/main/lib/draw
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
${srcdir}/${pkgbase}-${pkgver}/main/gbc/gbi2 -r ${pkgdir}/usr gb
cd ${srcdir}/${pkgbase}-${pkgver}/gb.qt
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
cd ${srcdir}/${pkgbase}-${pkgver}/main/lib/gui
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
cd ${srcdir}/${pkgbase}-${pkgver}/main/lib/db
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
${srcdir}/${pkgbase}-${pkgver}/main/gbc/gbi2 -r ${pkgdir}/usr
##
_buildgbcomp gb.form
_buildgbcomp gb.report
## cleanup the workaround
rm ${pkgdir}/usr/share/gambas2/info/{gb.{info,list},gb.form.{info,list},gb.qt*,gb.gui*,gb.db*}
rm ${pkgdir}/usr/lib/gambas2/{gb.draw*,gb.qt*,gb.{so*,la},gb.form.{component,gambas},gb.gui*,gb.db*}
rm -rf ${pkgdir}/usr/bin
##
}
package_gambas2-gb-sdl() {
depends=('gambas2-runtime' 'sdl_image' 'libxft' 'libxcursor' 'libgl')
pkgdesc="Gambas2 SDL component"
cd ${srcdir}/${pkgbase}-${pkgver}/gb.sdl
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
}
package_gambas2-gb-sdl-sound() {
depends=('gambas2-runtime' 'sdl_mixer')
pkgdesc="Gambas2 SDL sound component"
cd ${srcdir}/${pkgbase}-${pkgver}/gb.sdl.sound
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
}
package_gambas2-gb-settings() {
depends=('gambas2-runtime')
pkgdesc="Gambas2 settings management component"
# arch=('any')
## workaround for splitting
cd ${srcdir}/${pkgbase}-${pkgver}/main/gbx
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
mkdir -p ${pkgdir}/usr/share/gambas2/info
${srcdir}/${pkgbase}-${pkgver}/main/gbc/gbi2 -r ${pkgdir}/usr gb
##
_buildgbcomp gb.settings
## cleanup the workaround
rm ${pkgdir}/usr/share/gambas2/info/gb.{info,list}
rm ${pkgdir}/usr/lib/gambas2/gb.{so*,la}
rm -rf ${pkgdir}/usr/bin
##
}
package_gambas2-gb-v4l() {
depends=('gambas2-runtime' 'libjpeg' 'libpng')
pkgdesc="Gambas2 V4L component"
cd ${srcdir}/${pkgbase}-${pkgver}/gb.v4l
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
}
package_gambas2-gb-vb() {
depends=('gambas2-runtime')
pkgdesc="Gambas2 VB transitional component"
cd ${srcdir}/${pkgbase}-${pkgver}/main/lib/vb
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
}
package_gambas2-gb-web() {
depends=('gambas2-runtime')
pkgdesc="Gambas2 CGI component"
# arch=('any')
## workaround for splitting
cd ${srcdir}/${pkgbase}-${pkgver}/main/gbx
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
mkdir -p ${pkgdir}/usr/share/gambas2/info
${srcdir}/${pkgbase}-${pkgver}/main/gbc/gbi2 -r ${pkgdir}/usr gb
##
_buildgbcomp gb.web
## cleanup the workaround
rm ${pkgdir}/usr/share/gambas2/info/gb.{info,list}
rm ${pkgdir}/usr/lib/gambas2/gb.{so*,la}
rm -rf ${pkgdir}/usr/bin
##
}
package_gambas2-gb-xml() {
depends=('gambas2-runtime' 'libxml2')
pkgdesc="Gambas2 xml component"
## workaround for splitting
cd ${srcdir}/${pkgbase}-${pkgver}/main/gbx
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
mkdir -p ${pkgdir}/usr/share/gambas2/info
${srcdir}/${pkgbase}-${pkgver}/main/gbc/gbi2 -r ${pkgdir}/usr gb
cd ${srcdir}/${pkgbase}-${pkgver}/gb.net
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
cd ${srcdir}/${pkgbase}-${pkgver}/gb.net.curl
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
${srcdir}/${pkgbase}-${pkgver}/main/gbc/gbi2 -r ${pkgdir}/usr
##
cd ${srcdir}/${pkgbase}-${pkgver}/gb.xml
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
## cleanup the workaround
rm ${pkgdir}/usr/share/gambas2/info/{gb.xml.{xslt*,rpc*},gb.{info,list},gb.net*}
rm ${pkgdir}/usr/lib/gambas2/{gb.xml.{xslt*,rpc*},gb.{so*,la},gb.net*}
rm -rf ${pkgdir}/usr/bin
##
}
package_gambas2-gb-xml-rpc() {
depends=('gambas2-gb-xml' 'gambas2-gb-net' 'gambas2-gb-net-curl')
pkgdesc="Gambas2 xml-rpc component"
## workaround for splitting
cd ${srcdir}/${pkgbase}-${pkgver}/main/gbx
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
mkdir -p ${pkgdir}/usr/share/gambas2/info
${srcdir}/${pkgbase}-${pkgver}/main/gbc/gbi2 -r ${pkgdir}/usr gb
cd ${srcdir}/${pkgbase}-${pkgver}/gb.net
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
cd ${srcdir}/${pkgbase}-${pkgver}/gb.net.curl
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
${srcdir}/${pkgbase}-${pkgver}/main/gbc/gbi2 -r ${pkgdir}/usr
##
cd ${srcdir}/${pkgbase}-${pkgver}/gb.xml
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
## cleanup the workaround
rm ${pkgdir}/usr/share/gambas2/info/gb.{{info,list},xml.{info,list},xml.xslt.{info,list},net.*}
rm ${pkgdir}/usr/lib/gambas2/gb.{{so*,la},xml.{so*,la,component},xml.xslt.*,net.*}
rm -rf ${pkgdir}/usr/bin
##
}
package_gambas2-gb-xml-xslt() {
depends=('gambas2-gb-xml' 'libxslt')
pkgdesc="Gambas2 xml-xslt component"
## workaround for splitting
cd ${srcdir}/${pkgbase}-${pkgver}/main/gbx
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
mkdir -p ${pkgdir}/usr/share/gambas2/info
${srcdir}/${pkgbase}-${pkgver}/main/gbc/gbi2 -r ${pkgdir}/usr gb
##
cd ${srcdir}/${pkgbase}-${pkgver}/gb.xml/src/xslt
make DESTDIR="${pkgdir}" GBFILES="${_gbfiles}" install
## cleanup the workaround
rm ${pkgdir}/usr/share/gambas2/info/gb.{info,list}
rm ${pkgdir}/usr/lib/gambas2/gb.{so*,la}
rm -rf ${pkgdir}/usr/bin
##
}
|