summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 77812f2480c8d29982ce37d6c19b4f9f8fd585ba (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
# Maintainer: Que Quotion <quequotion@bugmenot.com>

pkgname=pantheon-qq-default-settings-git
pkgver=r376.7a753ce
pkgrel=1
arch=('any')
url='https://github.com/elementary/default-settings'
license=('GPL')
groups=('pantheon-qq' 'pantheon-unstable')
makedepends=('git' 'meson')
pkgdesc='Default settings for Pantheon derivatives'
depends=('elementary-icon-theme' 'gtk-theme-elementary-git'
         'gnome-themes-standard' ttf-{droid,opensans,roboto})
optdepends=('elementary-wallpapers-git')
groups=(pantheon-qq)
provides=(pantheon-default-settings{,-git})
conflicts=(pantheon-default-settings{,-git})
source=('pantheon-default-settings::git+https://github.com/elementary/default-settings.git#branch=meson'
        'arch-tweaks.patch'
        'leave-bg-alone.patch')
sha256sums=('SKIP'
            '99528c7ed672a5231f4d42d90421cef18d416f2b7aea6e0381db7cea6f9391d3'
            '3732b2209d28c68bb3a11da5726f486db1fca9fcb3776bf58f83c81678b84211')

pkgver() {
    cd $srcdir/pantheon-default-settings

    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
    cd $srcdir/pantheon-default-settings

    #Remove ubuntu-specific settings
    patch -Np1 -i ../arch-tweaks.patch

    #Don't touch any background-related settings
    patch -Np2 -i ../leave-bg-alone.patch
}

build() {
    cd $srcdir/pantheon-default-settings
    [ -d build ] && rm -rf build
    arch-meson build
}

package() {
    cd $srcdir/pantheon-default-settings
    DESTDIR=$pkgdir ninja -C build install

    install -dm 755 "${pkgdir}"/usr/share/glib-2.0/schemas
    install -m 644 debian/elementary-default-settings.gsettings-override "${pkgdir}"/usr/share/glib-2.0/schemas/25_pantheon-default-settings.gschema.override
    #install -Dm 644 $pkgdir/etc/lightdm/lightdm.conf $pkgdir/etc/skel/.config/lightdm/lightdm.conf
    #rm $pkgdir/etc/lightdm/lightdm.conf
    install -Dm 644 $pkgdir/etc/gtk-3.0/settings.ini $pkgdir/etc/skel/.config/gtk-3.0/settings.ini
    rm $pkgdir/etc/gtk-3.0/settings.ini
    rm $pkgdir/usr/share/cups/data/default-testpage.pdf
}