summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9886f77e6629ef5e663af7c2d0fe67c6333f8379 (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
# Maintainer: allddd <allddd (at) proton (dot) me>

pkgname=dracula-rofi-git
pkgver=r29.459eee3
pkgrel=1
pkgdesc='Dark theme for Rofi'
arch=('any')
url='https://draculatheme.com/rofi'
license=('MIT')
makedepends=('git')
optdepends=('rofi')
source=("${pkgname}::git+https://github.com/dracula/rofi.git")
sha256sums=('SKIP')
install=${pkgname}.install

pkgver() {
    cd "${srcdir}/${pkgname}"
    printf 'r%s.%s' "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
    cd "${srcdir}/${pkgname}"
    local NUM=1
    for CONF in $(find ./theme/ -type f -name '*.rasi'); do
        install -Dm644 "${CONF}" "${pkgdir}/usr/share/rofi/themes/dracula${NUM}.rasi"
        ((NUM++))
    done
    install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}/"
}

# vim: ts=4 sw=4 et: