summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9bf96520200c4a09ed783f4d2c85874757144490 (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
# Maintainer: haxibami <contact at haxibami dot net>

pkgname=nody-greeter
pkgver=1.5.2
pkgrel=1
pkgdesc="LightDM greeter that allows to create wonderful themes with web technologies. Made in Node.js"
arch=("any")
url="https://github.com/JezerM/nody-greeter"
license=("GPL3")
depends=("lightdm" "gobject-introspection" "cairo")
makedepends=("git" "nodejs<17" "npm" "python3")
source=("${pkgname}-${pkgver}::git+${url}.git#tag=${pkgver}" "package.patch")
sha256sums=('SKIP'
            'bbea2e0dbded27707814e5844631a87b4b38a931011a0fa92ad0c3446fdce7c2')

prepare() {
    cd "${pkgname}-${pkgver}"
    git submodule update --init --recursive
    patch --forward --strip=1 --input="${srcdir}/package.patch"
    npm install
}

build() {
    cd "${pkgname}-${pkgver}"
    npm run rebuild
    npm run build
}

package() {
    cd "${pkgname}-${pkgver}"
    node make --DEST_DIR="${pkgdir}/" install
    install -d "${pkgdir}/usr/bin"
    ln -s "/opt/${pkgname}/nody-greeter" "${pkgdir}/usr/bin"
}