diff options
author | Luca Capezzuto | 2019-05-25 17:19:53 +0100 |
---|---|---|
committer | Luca Capezzuto | 2019-05-25 17:19:53 +0100 |
commit | d3dce960206719d92ecbf2f86bedf0a1ac253242 (patch) | |
tree | 29068d1500305f6bc439add8c44906dba1ff6f90 | |
parent | f52f3e435754f9dc9333b55ae94b09971dad7b28 (diff) | |
download | aur-d3dce960206719d92ecbf2f86bedf0a1ac253242.tar.gz |
pkgbuild fixed
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 27 |
2 files changed, 12 insertions, 17 deletions
@@ -1,7 +1,7 @@ pkgbase = lain-git pkgdesc = Layouts, asynchronous widgets and utilities for Awesome WM pkgver = 1697.3328e73 - pkgrel = 2 + pkgrel = 3 url = https://github.com/lcpz/lain arch = any license = GPL2 @@ -1,33 +1,28 @@ # Maintainer: Luca CPZ <luca.cpz [at] gmail [dot] com> -pkgname=lain-git +_pkgname=lain +pkgname=$_pkgname-git pkgcom=1697 pkgsha=3328e73 pkgver=$pkgcom.$pkgsha -pkgrel=2 +pkgrel=3 pkgdesc="Layouts, asynchronous widgets and utilities for Awesome WM" arch=("any") -url="https://github.com/lcpz/lain" +url="https://github.com/lcpz/$_pkgname" license=("GPL2") depends=("awesome") optdepends=("curl: for IMAP, MPD and weather widgets") -provides=("lain") -conflicts=("lain") +provides=("$_pkgname") +conflicts=("$_pkgname") sha256sums=("SKIP") -source=("lain-${pkgver}.zip::https://github.com/lcpz/lain/archive/$pkgsha.zip") +source=("$_pkgname-${pkgver}.zip::https://github.com/lcpz/$_pkgname/archive/$pkgsha.zip") prepare() { - mv "lain-$pkgsha"* lain + mv "$_pkgname-$pkgsha"* $_pkgname } 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 + 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" } |