summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 31ee3ec78c597fecc85400d4c4b6793927f69a55 (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: Luca CPZ <luca.cpz [at] gmail [dot] com>

pkgname=lain-git
pkgcom=1697
pkgsha=3328e73
pkgver=$pkgcom.$pkgsha
pkgrel=2
pkgdesc="Layouts, asynchronous widgets and utilities for Awesome WM"
arch=("any")
url="https://github.com/lcpz/lain"
license=("GPL2")
depends=("awesome")
optdepends=("curl: for IMAP, MPD and weather widgets")
provides=("lain")
conflicts=("lain")
sha256sums=("SKIP")
commitHash="3328e738bdc1223583fb98730668dfed24395dfc"
source=("lain-${pkgver}.zip::https://github.com/lcpz/lain/archive/$commitHash.zip")

prepare() {
    mv "lain-$commitHash" lain
}

package() {
    # check if awesome is stable or git
    if [ -d "/usr/share/awesome/lib/" ]; then
        aw_path="$pkgdir/usr/share/awesome/lib"
    else
        aw_path="$pkgdir/usr/local/share/awesome/lib"
    fi

    install -dm755 "$aw_path/lain"
    cp -a lain $aw_path
}