summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4c51e6bf4e22a60a224ffd1b4e7df79cf30677b7 (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
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
# Author: Matt McDonald <gardotd426@gmail.com>
# Contributor: Kevin Gilmer
# Contributor: Avinash Duduskar <strykar@hotmail.com>
# Maintainer: gardotd426 <gardotd426@gmail.com>


pkgbase=regolith-de
pkgname=(regolith-i3 # (regolith-i3-gaps regolith-i3-gaps-session i3-gaps-wm i3-gaps-wm-dbg i3-snapshot i3xrocks gnome-flashback ubiquity-slideshow-regolith)
        regolith-i3xrocks # allll the i3xrocks shit
	i3xrocks-app-launcher
	i3xrocks-battery
	i3xrocks-cpu-usage
	i3xrocks-focused-window-name
	i3xrocks-info
	i3xrocks-key-indicator
	i3xrocks-media-player
	i3xrocks-memory
	i3xrocks-net-traffic
	i3xrocks-nm-vpn
	i3xrocks-openvpn
	i3xrocks-temp
	i3xrocks-time
	i3xrocks-volume
	i3xrocks-weather
	i3xrocks-wifi
        regolith-styles # alll the styles shit
        regolith-st 
        regolith-desktop-config
	remontoire-regolith)
pkgver=1.6
pkgrel=11
arch=('x86_64')
url=https://github.com/regolith-linux/regolith-desktop
url2=https://launchpad.net/~regolith-linux/+archive/ubuntu/release/+files
url3=https://launchpad.net/~regolith-linux/+archive/ubuntu/unstable/+files
url4=http://archive.ubuntu.com/ubuntu/pool/main/g/gnome-session/
url5=https://launchpad.net/~regolith-linux/+archive/ubuntu/stable/+files
license=('custom: multiple')
groups=('regolith-de')
makedepends=('wget' 'fakeroot' 'binutils' 'patch' 'python' 'meson' 'ninja' 'gtk3' 'git' 'gcc' 'vala' 'xcb-util-xrm' 'python-appdirs')

source=(http://ppa.launchpad.net/regolith-linux/release/ubuntu/pool/main/a/ayu-theme/ayu-theme_0.2.2-1_amd64.deb
        http://ppa.launchpad.net/regolith-linux/release/ubuntu/pool/main/c/cahuella/cahuella_1.0.3-1_amd64.deb
        "${url2}"/i3-snapshot_1.0.1-2hirsute_amd64.deb
	git+https://github.com/regolith-linux/i3xrocks.git
        git+https://github.com/regolith-linux/regolith-i3xrocks-config
	http://ppa.launchpad.net/regolith-linux/release/ubuntu/pool/main/m/moka-icon-theme/moka-icon-theme_5.4.523-201905300105~daily~ubuntu19.04.1_all.deb
        "${url2}"/nordic_1.6.5-1ubuntu1ppa1_all.deb
	"${url2}"/paper-icon-theme_1.5.723-201905252133~daily~ubuntu19.04.1_all.deb
	"${url2}"/plano-theme_3.36-1-1regolith1_all.deb
        "${url2}"/plymouth-theme-regolith_1.0.3-1_all.deb
        "${url2}"/regolith-compositor-picom-glx_1.1.3-1_amd64.deb
        http://ppa.launchpad.net/regolith-linux/release/ubuntu/pool/main/r/regolith-default-settings/regolith-default-settings_1.0.8-1hirsute_amd64.deb
        http://ppa.launchpad.net/regolith-linux/release/ubuntu/pool/main/r/regolith-desktop/regolith-desktop-complete_2.124-1hirsute_amd64.deb
        http://ppa.launchpad.net/regolith-linux/release/ubuntu/pool/main/r/regolith-ftue/regolith-ftue_1.1.2-1_amd64.deb
        "${url2}"/regolith-gdm3-theme_2.0.0-1ubuntu1~ppa1_amd64.deb
        "${url2}"/regolith-gnome-flashback_2.6.2-1_amd64.deb
        http://ppa.launchpad.net/regolith-linux/release/ubuntu/pool/main/r/regolith-i3-gaps-config/regolith-i3-gaps-config_2.8.6-1_amd64.deb
        http://ppa.launchpad.net/regolith-linux/release/ubuntu/pool/main/r/regolith-lightdm-config/regolith-lightdm-config_1.1.1-1_amd64.deb
        http://ppa.launchpad.net/regolith-linux/release/ubuntu/pool/main/r/regolith-styles/regolith-look-ayu_2.9.7-1_amd64.deb
        http://ppa.launchpad.net/regolith-linux/release/ubuntu/pool/main/r/regolith-styles/regolith-look-ayu-dark_2.9.7-1_amd64.deb
        http://ppa.launchpad.net/regolith-linux/release/ubuntu/pool/main/r/regolith-styles/regolith-look-ayu-mirage_2.9.7-1_amd64.deb
        http://ppa.launchpad.net/regolith-linux/release/ubuntu/pool/main/r/regolith-styles/regolith-look-cahuella_2.9.7-1_amd64.deb
        http://ppa.launchpad.net/regolith-linux/release/ubuntu/pool/main/r/regolith-styles/regolith-look-dracula_2.9.7-1_amd64.deb
        http://ppa.launchpad.net/regolith-linux/release/ubuntu/pool/main/r/regolith-styles/regolith-look-gruvbox_2.9.7-1_amd64.deb
        http://ppa.launchpad.net/regolith-linux/release/ubuntu/pool/main/r/regolith-styles/regolith-look-lascaille_2.9.7-1_amd64.deb
        http://ppa.launchpad.net/regolith-linux/release/ubuntu/pool/main/r/regolith-styles/regolith-look-nord_2.9.7-1_amd64.deb
        http://ppa.launchpad.net/regolith-linux/release/ubuntu/pool/main/r/regolith-styles/regolith-look-pop-os_2.9.7-1_amd64.deb
        http://ppa.launchpad.net/regolith-linux/release/ubuntu/pool/main/r/regolith-styles/regolith-look-solarized-dark_2.9.7-1_amd64.deb
        http://ppa.launchpad.net/regolith-linux/release/ubuntu/pool/main/r/regolith-styles/regolith-look-ubuntu_2.9.7-1_amd64.deb
        "${url2}"/regolith-rofi-config_1.3.1-1_amd64.deb
        "${url2}"/regolith-st_0.8.2-1ubuntu20ppa5_amd64.deb
        http://ppa.launchpad.net/regolith-linux/release/ubuntu/pool/main/r/regolith-styles/regolith-styles_2.9.7-1_amd64.deb
        http://ppa.launchpad.net/regolith-linux/release/ubuntu/pool/main/r/regolith-system/regolith-system_1.5.3-1_amd64.deb
        http://ppa.launchpad.net/regolith-linux/release/ubuntu/pool/main/s/solarc-theme/solarc-theme_800c997-2_amd64.deb
        http://ppa.launchpad.net/regolith-linux/release/ubuntu/pool/main/u/ubiquity-slideshow-regolith/ubiquity-slideshow-regolith_168.6-regolith1_all.deb
        "${url2}"/xrescat_1.2.1-1_amd64.deb
        flashback.patch
	git+https://github.com/regolith-linux/regolith-rofication.git
	http://launchpad.net/\~regolith-linux/+archive/ubuntu/release/+files/midnight-gtk-theme_1.1.0-1_all.deb
	http://launchpad.net/\~regolith-linux/+archive/ubuntu/release/+files/regolith-look-solarized-light_2.9.7-1_amd64.deb
	https://launchpad.net/~regolith-linux/+archive/ubuntu/release/+files/regolith-look-midnight_2.9.7-1_amd64.deb
	http://ppa.launchpad.net/regolith-linux/release/ubuntu/pool/main/p/pop-icon-theme/pop-icon-theme_1.4.0~1565992228~18.04~2bac292_all.deb
	http://ppa.launchpad.net/regolith-linux/release/ubuntu/pool/main/p/pop-icon-theme/pop-icon-theme-extra_1.4.0~1565992228~18.04~2bac292_all.deb
	http://ppa.launchpad.net/regolith-linux/release/ubuntu/pool/main/q/qogir-icon-theme/qogir-icon-theme_1.0.0-1_all.deb
	http://ppa.launchpad.net/regolith-linux/release/ubuntu/pool/main/f/fonts-materialdesignicons-webfont/fonts-materialdesignicons-webfont_1.6.50-3regolith3_amd64.deb
	http://ppa.launchpad.net/regolith-linux/release/ubuntu/pool/main/g/gruvbox-gtk/gruvbox-gtk_1.0.1-1_amd64.deb
        http://ppa.launchpad.net/regolith-linux/release/ubuntu/pool/main/d/dracula-gtk/dracula-gtk_1.1.0-1_amd64.deb
	http://ppa.launchpad.net/regolith-linux/release/ubuntu/pool/main/p/pop-gtk-theme/pop-gtk-theme_4.1.4\~1560290633\~18.04\~f75e86a_all.deb
        git+https://github.com/regolith-linux/remontoire.git
	rofitheme.patch
	midnight-rofi.patch
	rofication.patch
	regolith-look.patch)


sha256sums=('6e8c3d2dbe8c192c40593c85c9c5f2f6fb29ea376e72770461b41b867a2dd996'
            'bc90c3f172fbff7b570a0bac516b9c76f7ed4cf3ca2a09003ff6c966fc03193d'
            'afab55c89c58210ce24bc0416cb1cf474deb446010b209df623c29d1bdc481fb'
            'SKIP'
            'SKIP'
            'ff2fc4ccaf083eeeb4fccabf027f673fe1654631d4885bd7bf740683ce5e2667'
            '05c66c372d378d2992ec59be553bd7de1cf0574d61313d84274f1e64bfe23d3b'
            'eea3b0004671455426336e21aa285dadb2d891d1d4917f2b3ebcbcc391fe6864'
            '04ca38cece64a64774744325194e1b2c040a700d01439b7feb1f04eec28d82cb'
            'f9fabeb0442eb849a8e95163c20fbf9b40f288af0812583b270120e4d8092608'
            'bda06402859032215fff3b499a4d7034e3933be6eafa8473d1bb8c78aea85549'
            'a627f086ccc09ef3d96766cad8d422685785deb5e36792eaca743139fba332f3'
            'f7af2e26790998191cdea97ba492c8f8152006a3099559a55064686f55bdd162'
            '3a4f894fcb77e76a61220f4ea5397b9ebe8d0778b9ec07b90e5a1696fbdcece4'
            '82050c4f1a95faeb4fd34eada50028f855527ffeda4277a7563a050e81f5cd02'
            'f8d8497b096f759797cb51c47adef958a6245e6608126db1e840097e2b3afdf5'
            '3a2c34cf6c4ccf9c205185286c45a61619a897fd7b5ad0dc6b48a16a66842231'
            'e9877b4c5c0013a1b2dfd0c4375fbe79461c01fb5246b19236b81ab6362d4f20'
            'e8c503b6adc0d299146d51fee5978c354d7bd4707de3697ef58ffc37516d25a2'
            'a4255f30cedd4223c256e84b09b613a4965ac7b6b8086c93e67b8a5c44077d13'
            '15d54bd84de2d242517d4946afa1bd44163235eae0fe02873d6ffae1fba2450d'
            'f77df0ec461417447a443b16acc57cbe41e30464c0fa6383c95ca1d804bed1b2'
            '277baa72cfef413f9341d8706f764ec04023c827d5c86d7b4b92af56cf120fc4'
            'e0b15bc5ca4ed9b85dd47bf34622875cfc811d8e9e67adbf864b56e41a85205e'
            'c33e493cfac187e129650ed8879ed742dcf53ae709f3ba3765496f2ac76d8d3e'
            '24cacb6b41cb5adec5e31f05e7387379261479c438501dd195ac742be1ffb0c6'
            '9a2e85ee62e51413263be7f90cf781fe2a86f9ce7f7c19565c033cf5ae72a038'
            '122b15438765be36fdd50fd53cd69bc5f873a97c1357d09f9c77fa824b94c6da'
            '5ef87bae9ba8c84b56a595858b0de84954bd07548275a0c86e57bfecdbea0737'
            '1edb890270688a337bdf6243dd1216a282210ab9a35b67cf91a4610b0df8cb85'
            '900c285972a9969b4d2d8bcd67dabccb817a2a77a102251d5dc1b2e254f095c8'
            '24b0501147a6c6e706b1e51b073df17c288cf45f875262bddd2f37d58e6cea7e'
            'dab3cfb66be6e312e177ac794dbcc42628216c76d0efbffb4699fd50395f6226'
            '7be92e96f74cb0ec7e97c6c38861c6e9417636c9cb9bacb77f6aea8bd5eb3cb4'
            'e58c01ccee273f5567a33509b74766eb5a5572284d7cbb32b7017ac7986f90eb'
            'ae1b03ac0d10e6f5de8ac40670caf3204f2f38f2a3a3a3d29182a2fd5740edce'
            '63082efb191f31c3bc4be28f7118aa38e53b0d18b4366cbdc275a628b36876ce'
            'SKIP'
            '528e231adb021eba916a2d9a82c5f4937f1103027d0588941d577112a1163161'
            '5c4752152bdfbf2936d0f5affd96b8be8a0e2ca341f2393737fa03f6261f7ead'
            '4311b12f301b27bf24aaafa49528d251144c2a1071f999c1dae1341aa66b3c1a'
            '3309a0e7c851c063deeb696aab1f71d4233995cff1d44a432dbdd1f72581cb6a'
            'fbe43d68d44e2dd18c87be59212a483dcdd305d44bafbb24c6ed7b4a7fa516ba'
            '33602d8faec796be87966383f741f62b60c06c08714b546845379ada7ed0b77e'
            '6b3cd883cc38098b25d5fa828751d0d9b5c40a754d92d1925c354f969707ed99'
            '6884a081345953c3e5aa2cf7c32253604eb9bf07b5ca4570cf41802d6ca762d6'
            'bf588ec5f3434d73db05085a2b6b08d8dde4383dd2a1d4a74030983d2cbc929e'
            'eb44cac833c369dc0f3afe71e334a7bccaaef45836030b3c9ab3d9dc70500370'
            'SKIP'
            '734b6fdfbfc78cd9c41b1c32e59ef15671a0ef650719fdedfc47f50c5ec633ad'
            '705c95cdfd5847cd6c7fafe123cbdc6c3f404407118967797210189157c52e5c'
            'ffc32c177754990e7f5f7126415bd8f2d210dd875ad5ae43b057299a7d395905'
            '5f2b29ef8fb363a1121befa276d7e6251c8961b8819ac2d60a5ec2006f126c97')


PKGEXT='.pkg.tar.zst'


# extracts a debian package
# $1: deb file to extract
extract_deb() {
    local tmpdir="$(basename "${1%.deb}")"
    rm -Rf "$tmpdir"
    mkdir "$tmpdir"
    cd "$tmpdir"
    ar x "$1"
    tar -C "${pkgdir}" -xf data.tar.xz
}




move_script() {
    mkdir -p "${pkgdir}"/usr/share/i3xrocks
    install -Dm755 "$1" "${pkgdir}"/usr/share/i3xrocks/"$2"
}

move_conf() {
    mkdir -p "${pkgdir}"/etc/regolith/i3xrocks/conf.d
    install -Dm644 "$1" "${pkgdir}"/etc/regolith/i3xrocks/conf.d/"$2"
}

# move ubuntu specific /usr/lib/x86_64-linux-gnu to /usr/lib
# $1: debian package library dir (from x86_64 or i386)
# $2: arch package library dir (goes to usr/lib or usr/lib32)
move_libdir() {
    local deb_libdir="$1"
    local arch_libdir="$2"

    if [ -d "${pkgdir}/${deb_libdir}" ]; then
        if [ ! -d "${pkgdir}/${arch_libdir}" ]; then
            mkdir -p "${pkgdir}/${arch_libdir}"
        fi
        mv -t "${pkgdir}/${arch_libdir}/" "${pkgdir}/${deb_libdir}"/*
        find ${pkgdir} -type d -empty -delete
    fi
}
# move copyright file to proper place and remove debian changelog
move_copyright() {
    find ${pkgdir}/usr/share/doc -name "changelog.Debian.gz" -delete
    mkdir -p ${pkgdir}/usr/share/licenses/
    find ${pkgdir}/usr/share/doc -name "copyright" -exec mv {} ${pkgdir}/usr/share/licenses/${pkgname} \;
    find ${pkgdir}/usr/share/doc -type d -empty -delete
}

package_regolith-i3 () {
pkgdesc="Regolith's i3-gaps-based DE's underpinnings and gnome foundational dependencies"
    license=('MIT')
    arch=('x86_64')
    depends=('i3-gaps' 'i3status' 'xorg-server' 'xcb-util-keysyms' 'xcb-util-wm'  'libev'
             'yajl'  'startup-notification'  'pango'  'perl' 'xorg-server' 'xorg-xrdb'
             'xcb-util-xrm'  'libxkbcommon-x11' 'python-i3ipc' 'gnome-flashback' 
             'accountsservice' 'cups-pk-helper' 'libgtop' 'gnome-control-center' 'gnome-desktop' 
	     'xorg-xwininfo' 'dbus' 'python-gobject' 'python-dbus' 'xorg-xprop' 'libev' 'pcre'
	     'libconfig' 'xcb-util-image' 'xcb-util-renderutil' 'libsigc++' 'gnome-session'
             'gnome-settings-daemon' 'playerctl' 'jsoncpp')
    optdepends=('picom: For compositing/desktop effects - strongly recommended!'
		'unclutter-xfixes-git: For unclutter'
		'lightdm: Display Manager - Regolith LightDM theme included in regolith-desktop-config' )
    provides=('xrescat' 'regolith-gnome-flashback' 'i3-snapshot')
    conflicts=()
    groups=('regolith-de')

    extract_deb "${srcdir}"/regolith-gnome-flashback_2.6.2-1_amd64.deb
    extract_deb "${srcdir}"/xrescat_1.2.1-1_amd64.deb
    extract_deb "${srcdir}"/i3-snapshot_1.0.1-2hirsute_amd64.deb

    
    # extra command
    patch "${pkgdir}"/usr/bin/regolith-session -i "${srcdir}"/flashback.patch

    move_copyright
}


package_regolith-i3xrocks () {
    pkgdesc="Regolith's i3xrocks with associated widgets and config files"
    license=('GPLv3')
    arch=('x86_64')
    depends=('glibc' 'accountsservice' 'alsa-utils' 'bc' 'ttf-font-awesome' 'xcb-util-xrm')
    conflicts=('i3xrocks')
    provides=('i3xrocks')
    groups=('regolith-de')


    cd "${srcdir}"/i3xrocks/
    ./autogen.sh
    ./configure --prefix=/usr
    make && make DESTDIR="${pkgdir}" install
    move_conf "${srcdir}"/regolith-i3xrocks-config/conf.d/01_setup
    mkdir -p "${pkgdir}"/etc && install -Dm644 "${srcdir}"/i3xrocks/i3xrocks.conf "${pkgdir}"/etc/i3xrocks.conf
}


package_i3xrocks-app-launcher () {
    pkgdesc="App launcher blocklet for i3xrocks"
    license=('GPLv3')
    arch=('x86_64')
    depends=('glibc' 'accountsservice' 'bc' 'ttf-font-awesome')
    conflicts=()
    provides=('i3xrocks-app-launcher')
    groups=('regolith-de')



    move_script "${srcdir}"/regolith-i3xrocks-config/scripts/app-launcher app-launcher
    move_conf "${srcdir}"/regolith-i3xrocks-config/conf.d/10_app-launcher 10_app-launcher

#    extract_deb "${srcdir}"/i3xrocks-app-launcher_3.6.4-1_amd64.deb
#    move_copyright
}


package_i3xrocks-battery () {
    pkgdesc="Battery blocklet for i3xrocks"
    license=('GPLv3')
    arch=('x86_64')
    depends=('glibc' 'accountsservice' 'bc' 'ttf-font-awesome')
    conflicts=()
    provides=('i3xrocks-battery')
    groups=('regolith-de')

    move_script "${srcdir}"/regolith-i3xrocks-config/scripts/battery battery
    move_conf "${srcdir}"/regolith-i3xrocks-config/conf.d/80_battery 80_battery
}


package_i3xrocks-cpu-usage () {
    pkgdesc="CPU usage blocklet for i3xrocks"
    license=('GPLv3')
    arch=('x86_64')
    depends=('glibc' 'accountsservice' 'bc' 'ttf-font-awesome' 'sysstat')
    conflicts=()
    provides=('i3xrocks-cpu-usage')
    groups=('regolith-de')

    move_script "${srcdir}"/regolith-i3xrocks-config/scripts/cpu-usage cpu-usage
    move_conf "${srcdir}"/regolith-i3xrocks-config/conf.d/40_cpu-usage 40_cpu-usage
}


package_i3xrocks-focused-window-name () {
    pkgdesc="Focused window name blocklet for i3xrocks"
    license=('GPLv3')
    arch=('x86_64')
    depends=('glibc' 'accountsservice' 'bc' 'ttf-font-awesome')
    conflicts=()
    provides=('i3xrocks-focused-window-name')
    groups=('regolith-de')

    move_script "${srcdir}"/regolith-i3xrocks-config/scripts/focused-window-name focused-window-name
    move_conf "${srcdir}"/regolith-i3xrocks-config/conf.d/10_focused-window-name 10_focused-window-name
}


package_i3xrocks-info () {
    pkgdesc="Info/remontoire blocklet for i3xrocks"
    license=('GPLv3')
    arch=('x86_64')
    depends=('glibc' 'remontoire' 'accountsservice' 'bc' 'ttf-font-awesome')
    conflicts=()
    provides=('i3xrocks-info')
    groups=('regolith-de')

    move_conf "${srcdir}"/regolith-i3xrocks-config/conf.d/20_info 20_info
}


package_i3xrocks-key-indicator () {
    pkgdesc="Key indicator blocklet for i3xrocks"
    license=('GPLv3')
    arch=('x86_64')
    depends=('glibc' 'accountsservice' 'bc' 'ttf-font-awesome')
    conflicts=()
    provides=('i3xrocks-key-indicator')
    groups=('regolith-de')

    move_script "${srcdir}"/regolith-i3xrocks-config/scripts/key-indicator key-indicator
    move_conf "${srcdir}"/regolith-i3xrocks-config/conf.d/20_key-indicator 20_key-indicator
}


package_i3xrocks-media-player () {
    pkgdesc="media-player blocklet for i3xrocks"
    license=('GPLv3')
    arch=('x86_64')
    depends=('glibc' 'accountsservice' 'alsa-utils' 'bc' 'ttf-font-awesome' 'playerctl' 'regolith-i3')
    conflicts=()
    provides=('i3xrocks-media-player')
    groups=('regolith-de')

    move_script "${srcdir}"/regolith-i3xrocks-config/scripts/media-player media-player
    move_conf "${srcdir}"/regolith-i3xrocks-config/conf.d/30_media-player 30_media-player
}


package_i3xrocks-memory () {
    pkgdesc="RAM blocklet for i3xrocks"
    license=('GPLv3')
    arch=('x86_64')
    depends=('glibc' 'accountsservice' 'bc' 'ttf-font-awesome' 'perl')
    conflicts=()
    provides=('i3xrocks-memory')
    groups=('regolith-de')

    move_script "${srcdir}"/regolith-i3xrocks-config/scripts/memory memory
    move_conf "${srcdir}"/regolith-i3xrocks-config/conf.d/50_memory 50_memory
}


package_i3xrocks-net-traffic () {
    pkgdesc="Network traffic blocklet for i3xrocks"
    license=('GPLv3')
    arch=('x86_64')
    depends=('glibc' 'accountsservice' 'iproute2' 'bc' 'ttf-font-awesome')
    conflicts=()
    provides=('i3xrocks-net-traffic')
    groups=('regolith-de')

    move_script "${srcdir}"/regolith-i3xrocks-config/scripts/net-traffic net-traffic
    move_conf "${srcdir}"/regolith-i3xrocks-config/conf.d/30_net-traffic 30_net-traffic
}


package_i3xrocks-nm-vpn () {
    pkgdesc="nmcli vpn blocklet for i3xrocks"
    license=('GPLv3')
    arch=('x86_64')
    depends=('glibc' 'accountsservice' 'networkmanager' 'bc' 'ttf-font-awesome')
    conflicts=()
    provides=('i3xrocks-nm-vpn')
    groups=('regolith-de')

    move_script "${srcdir}"/regolith-i3xrocks-config/scripts/nm-vpn nm-vpn
    move_conf "${srcdir}"/regolith-i3xrocks-config/conf.d/40_nm-vpn 40_nm-vpn
}


package_i3xrocks-openvpn () {
    pkgdesc="OpenVPN blocklet for i3xrocks"
    license=('GPLv3')
    arch=('x86_64')
    depends=('glibc' 'accountsservice' 'openvpn' 'bc' 'ttf-font-awesome')
    conflicts=()
    provides=('i3xrocks-openvpn')
    groups=('regolith-de')

    move_script "${srcdir}"/regolith-i3xrocks-config/scripts/openvpn openvpn
    move_conf "${srcdir}"/regolith-i3xrocks-config/conf.d/40_openvpn 40_openvpn
}


package_i3xrocks-temp () {
    pkgdesc="CPU temperature blocklet for i3xrocks"
    license=('GPLv3')
    arch=('x86_64')
    depends=('glibc' 'lm_sensors')
    conflicts=()
    provides=('i3xrocks-temp')
    groups=('regolith-de')

    move_script "${srcdir}"/regolith-i3xrocks-config/scripts/temp temp
    move_conf "${srcdir}"/regolith-i3xrocks-config/conf.d/40_temp 40_temp
}



package_i3xrocks-time () {
    pkgdesc="Time blocklet for i3xrocks"
    license=('GPLv3')
    arch=('x86_64')
    depends=('glibc' 'bc' 'ttf-font-awesome')
    conflicts=()
    provides=('i3xrocks-time')
    groups=('regolith-de')

    move_script "${srcdir}"/regolith-i3xrocks-config/scripts/time time
    move_conf "${srcdir}"/regolith-i3xrocks-config/conf.d/90_time 90_time
}


package_i3xrocks-volume () {
    pkgdesc="Volume blocklet for i3xrocks"
    license=('GPLv3')
    arch=('x86_64')
    depends=('glibc' 'accountsservice' 'alsa-utils' 'bc' 'ttf-font-awesome')
    conflicts=()
    provides=('i3xrocks-volume')
    groups=('regolith-de')

    move_script "${srcdir}"/regolith-i3xrocks-config/scripts/volume volume
    move_conf "${srcdir}"/regolith-i3xrocks-config/conf.d/80_volume 80_volume
}


package_i3xrocks-weather () {
    pkgdesc="Weather blocklet for i3xrocks"
    license=('GPLv3')
    arch=('x86_64')
    depends=('glibc' 'accountsservice' 'curl' 'bc' 'ttf-font-awesome')
    conflicts=()
    provides=('i3xrocks-weather')
    groups=('regolith-de')

    move_script "${srcdir}"/regolith-i3xrocks-config/scripts/weather weather
    move_conf "${srcdir}"/regolith-i3xrocks-config/conf.d/20_weather 20_weather
}


package_i3xrocks-wifi () {
    pkgdesc="Wifi blocklet for i3xrocks"
    license=('GPLv3')
    arch=('x86_64')
    depends=('glibc' 'accountsservice' 'networkmanager' 'bc' 'ttf-font-awesome')
    conflicts=()
    provides=('i3xrocks-wifi')
    groups=('regolith-de')


    move_script "${srcdir}"/regolith-i3xrocks-config/scripts/wifi wifi
    move_conf "${srcdir}"/regolith-i3xrocks-config/conf.d/30_wifi 30_wifi
}


package_regolith-styles () {
    pkgdesc="Regolith's themes for i3, gdm, gtk, rofi, plymouth, etc."
    license=('custom: GPLv3')
    depends=("regolith-i3" "gtk3" "ttf-iosevka-nerd" "ttf-jetbrains-mono" "adwaita-icon-theme" "otf-fira-mono" "ttf-ubuntu-font-family" "arc-icon-theme" "python-appdirs")
    conflicts=("ayu-theme" "paper-icon-theme" "qogir-icon-theme" "moka-icon-theme-git" "nordic-theme-git" "gtk-theme-solarc-git" "gtk-theme-plano" "gtk-theme-plano-git" "dracula-gtk-theme")
    provides=("ayu-theme" "paper-icon-theme" "regolith-styles" "regolith-look" "gtk-theme-solarc" "gtk-theme-plano" "dracula-gtk-theme")
    groups=('regolith-de')

    extract_deb "${srcdir}"/ayu-theme_0.2.2-1_amd64.deb
    extract_deb "${srcdir}"/cahuella_1.0.3-1_amd64.deb
    extract_deb "${srcdir}"/nordic_1.6.5-1ubuntu1ppa1_all.deb
    extract_deb "${srcdir}"/paper-icon-theme_1.5.723-201905252133~daily~ubuntu19.04.1_all.deb
    extract_deb "${srcdir}"/plano-theme_3.36-1-1regolith1_all.deb
    extract_deb "${srcdir}"/plymouth-theme-regolith_1.0.3-1_all.deb
    extract_deb "${srcdir}"/regolith-gdm3-theme_2.0.0-1ubuntu1~ppa1_amd64.deb
    extract_deb "${srcdir}"/regolith-look-ayu_2.9.7-1_amd64.deb
    extract_deb "${srcdir}"/regolith-look-ayu-dark_2.9.7-1_amd64.deb
    extract_deb "${srcdir}"/regolith-look-ayu-mirage_2.9.7-1_amd64.deb
    extract_deb "${srcdir}"/regolith-look-cahuella_2.9.7-1_amd64.deb
    extract_deb "${srcdir}"/regolith-look-dracula_2.9.7-1_amd64.deb
    extract_deb "${srcdir}"/regolith-look-gruvbox_2.9.7-1_amd64.deb
    extract_deb "${srcdir}"/regolith-look-lascaille_2.9.7-1_amd64.deb
    extract_deb "${srcdir}"/regolith-look-nord_2.9.7-1_amd64.deb
    extract_deb "${srcdir}"/regolith-look-pop-os_2.9.7-1_amd64.deb
    extract_deb "${srcdir}"/regolith-look-solarized-dark_2.9.7-1_amd64.deb
    extract_deb "${srcdir}"/regolith-look-ubuntu_2.9.7-1_amd64.deb
    extract_deb "${srcdir}"/regolith-styles_2.9.7-1_amd64.deb
    extract_deb "${srcdir}"/solarc-theme_800c997-2_amd64.deb
    extract_deb "${srcdir}"/midnight-gtk-theme_1.1.0-1_all.deb
    extract_deb "${srcdir}"/regolith-look-solarized-light_2.9.7-1_amd64.deb
    extract_deb "${srcdir}"/regolith-look-midnight_2.9.7-1_amd64.deb
    extract_deb "${srcdir}"/moka-icon-theme_5.4.523-201905300105\~daily\~ubuntu19.04.1_all.deb
    extract_deb "${srcdir}"/pop-icon-theme_1.4.0~1565992228~18.04~2bac292_all.deb
    extract_deb "${srcdir}"/pop-icon-theme-extra_1.4.0~1565992228~18.04~2bac292_all.deb
    extract_deb "${srcdir}"/qogir-icon-theme_1.0.0-1_all.deb
    extract_deb "${srcdir}"/fonts-materialdesignicons-webfont_1.6.50-3regolith3_amd64.deb
    extract_deb "${srcdir}"/gruvbox-gtk_1.0.1-1_amd64.deb
    extract_deb "${srcdir}"/dracula-gtk_1.1.0-1_amd64.deb
    extract_deb "${srcdir}"/pop-gtk-theme_4.1.4\~1560290633\~18.04\~f75e86a_all.deb

    move_copyright

    cd "${pkgdir}"
    patch -Np1 -i "${srcdir}"/midnight-rofi.patch
    patch -Np1 -i "${srcdir}"/regolith-look.patch
    cp "${pkgdir}"/etc/regolith/styles/ayu/typeface "${pkgdir}"/etc/regolith/styles/lascaille/typeface
    cp "${pkgdir}"/etc/regolith/styles/ayu/typeface "${pkgdir}"/etc/regolith/styles/cahuella/typeface
}

package_regolith-desktop-config () {
    pkgdesc="Regolith DE's desktop settings and configuration files, for rofi, i3, lightdm, i3xrocks, etc. plus ubiquity-slideshow-regolith"
    license=('Custom')
    provides=('regolith-ftue' 'regolith-rofication')
    depends=('rofi' 'adobe-source-code-pro-fonts')
    optdepends=('lightdm: For the Regolith LightDM customization' 
		'regolith-i3xrocks: For i3xrocks (i3blocks) support'
	        'i3-gaps: For i3-gaps config support'
		'picom: For compositing configuration')
    groups=('regolith-de')

    extract_deb "${srcdir}"/regolith-compositor-picom-glx_1.1.3-1_amd64.deb
    extract_deb "${srcdir}"/regolith-default-settings_1.0.8-1hirsute_amd64.deb
    extract_deb "${srcdir}"/regolith-desktop-complete_2.124-1hirsute_amd64.deb
    extract_deb "${srcdir}"/regolith-ftue_1.1.2-1_amd64.deb
    extract_deb "${srcdir}"/regolith-lightdm-config_1.1.1-1_amd64.deb
    extract_deb "${srcdir}"/regolith-i3-gaps-config_2.8.6-1_amd64.deb
    extract_deb "${srcdir}"/regolith-rofi-config_1.3.1-1_amd64.deb
    extract_deb "${srcdir}"/regolith-system_1.5.3-1_amd64.deb
    extract_deb "${srcdir}"/ubiquity-slideshow-regolith_168.6-regolith1_all.deb

    move_copyright
## extra commands
#    rm "${pkgdir}"/usr/share/backgrounds/lucas-bellator-C0OD8OM-oM0-unsplash.jpg
#    rm "${pkgdir}"/usr/share/applications/reboot.desktop
#    rm "${pkgdir}"/usr/share/applications/logout.desktop
#    rm "${pkgdir}"/usr/share/applications/shutdown.desktop
    sed -i 's/x-terminal-emulator/st/g' "${pkgdir}"/etc/regolith/i3/config
    cd "${pkgdir}"
    patch -Np1 -i "${srcdir}"/rofitheme.patch
    cd "${srcdir}"/regolith-rofication
    patch -Np1 -i "${srcdir}"/rofication.patch
    python setup.py build
    python setup.py install --root="${pkgdir}" --optimize=1 --skip-build

    move_conf "${srcdir}"/regolith-rofication/80_rofication 80_rofication
}


package_regolith-st () {
    pkgdesc="Regolith's fork of st - the simple terminal"
    license=("MIT")
    provides=('st')
    conflicts=('st')
    groups=('regolith-de')

	extract_deb "${srcdir}"/regolith-st_0.8.2-1ubuntu20ppa5_amd64.deb
}


package_remontoire-regolith () {
    pkgdesc="Keybinding viewer for i3 and other programs"
    license=('GPL3')
    provides=('remontoire')
    conflicts=('remontoire-git')
    depends=('gtk-update-icon-cache' 'desktop-file-utils' 'glib2' 'json-glib' 'gtk3' 'libgee')

	cd "${srcdir}"
	meson --prefix /usr --buildtype=plain remontoire build
	cd "${srcdir}"/build
	ninja
	DESTDIR="${pkgdir}" ninja install
}