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 /PKGBUILD | |
parent | f52f3e435754f9dc9333b55ae94b09971dad7b28 (diff) | |
download | aur-d3dce960206719d92ecbf2f86bedf0a1ac253242.tar.gz |
pkgbuild fixed
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 27 |
1 files changed, 11 insertions, 16 deletions
@@ -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" } |