summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9f2512f8da2a60d44dfc72668f3672438965a4b1 (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
# Maintainer: hertg <aur@her.tg>
pkgname=lightdm-theme-neon-git
pkgver=r60.bed6b26
pkgrel=1
epoch=1
pkgdesc="Modern and customizable theme for web-greeter with a nostalgic neon look"
arch=('any')
url="https://github.com/hertg/lightdm-neon"
license=('GPL')
makedepends=('npm' 'git')
optdepends=()
provides=()
conflicts=()
source=("${pkgname}::git+https://github.com/hertg/lightdm-neon.git")
md5sums=('SKIP')

build() {
  cd $pkgname
	npm install
	npm run build
}

pkgver() {
  cd "$pkgname"
  ( set -o pipefail
    git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  )
}

package() {
  cd $pkgname
	install -dm755 ${pkgdir}/usr/share/web-greeter/themes/neon
	cp -r public/. ${pkgdir}/usr/share/web-greeter/themes/neon
}