summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 097d5f892bf270280d6b0cdd93843d5b80829fac (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
# Maintainer: Sefa Eyeoglu <contact@scrumplex.net>
# Container: gbr <gbr@protonmail.com>

_pkgname=vibrantlinux-amd
pkgname=${_pkgname}-git
pkgver=1.2.5.r1.g4ed73ef
pkgrel=1
pkgdesc='vibranceGUI replacement for Linux (AMD only)'
arch=(x86_64)
url="https://github.com/Scrumplex/vibrantLinux-AMD"
license=('MIT')
depends=('vibrantx' 'qt5-base')
makedepends=('git')
conflicts=("vibrantlinux-git" "vibrantlinux")
provides=("vibrantlinux-git" "vibrantlinux")
source=("${_pkgname}::git+https://github.com/zee2200/vibrantLinux.git" 'vibrantLinux.desktop')
sha512sums=('SKIP'
            '21531277bbcea2ab65116f8420db9197f99801f34f934f9bd181fb2077c3c26337c7356df236783a53eee6dccc3e994f7992c9aaa8d53ca32ec0d98231357b1f')


pkgver() {
    cd "${_pkgname}"

    git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
    cd "${_pkgname}"

    qmake
    make ${MAKEFLAGS}
}

package() {
    cd "${_pkgname}"

    make INSTALL_ROOT="${pkgdir}" install

    for res in 16 32 64 128 256 512
    do
        install -Dm664 "assets/icon${res}.png" "${pkgdir}/usr/share/icons/hicolor/${res}x${res}/apps/vibrantLinux.png"
    done
    install -Dm644 "${srcdir}/vibrantLinux.desktop" "${pkgdir}/usr/share/applications/vibrantLinux.desktop"
}