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

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

prepare() {
    rm -fr $_pkgname
    mv "$_pkgname-$pkgsha"* $_pkgname
}

package() {
    cd $_pkgname
    install -dm755 "$pkgdir/usr/share/lua/5.3/$_pkgname/"{icons,layout,util,widget}
    cp -a {icons,layout,util,widget,LICENSE,README.rst,*.lua} "$pkgdir/usr/share/lua/5.3/$_pkgname"
}