summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0a4aac5ab5ab8fa746c1c6d1dd0d08704e4028f6 (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
# Maintainer: Sergey Miroshnichenko <serg.zorg@gmail.com>

pkgname=notion-neg-git
pkgver=3612
pkgrel=1
pkgdesc="NotionWM fork with compton, dzen2, rofi, xft fonts support different default cfg"
url="https://github.com/neg-serg/notion"
arch=('i686' 'x86_64')
license=('custom:LGPL')
depends=('glib2' 'gettext' 'lua' 'libxext' 'libsm')
optdepends=('libxrandr: xrandr support'
            'compton: X11 compositing support')
makedepends=('git' 'libxrandr' 'rofi' 'dzen2-xft-xpm-xinerama-git')
provides=('libtu' 'libextl' 'notion')
conflicts=('notion')

source=("notion::git://github.com/neg-serg/notion") 
md5sums=('SKIP')

pkgver() {
    cd "${srcdir}/notion"
    git rev-list --count HEAD
}

build() {
    cd "${srcdir}/notion"
    make
}

package() {
    cd "${srcdir}/notion"
    make DESTDIR="${pkgdir}" install

    install -Dm0644 LICENSE "${pkgdir}/usr/share/licenses/notion/LICENSE"
    mkdir -p "${pkgdir}/usr/share/xsessions"
    cat > "${pkgdir}/usr/share/xsessions/notion.desktop" <<EOF
[Desktop Entry]
Name=Notion
Comment=This session logs you into Notion
Exec=notion
TryExec=notion
Icon=
Type=XSession
EOF
    for i in "${srcdir}/notion/example_cfg/"*; do
        cp -rv "${i}" "${pkgdir}/usr/etc/notion"
    done
}