summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuca Capezzuto2019-05-25 17:19:53 +0100
committerLuca Capezzuto2019-05-25 17:19:53 +0100
commitd3dce960206719d92ecbf2f86bedf0a1ac253242 (patch)
tree29068d1500305f6bc439add8c44906dba1ff6f90
parentf52f3e435754f9dc9333b55ae94b09971dad7b28 (diff)
downloadaur-d3dce960206719d92ecbf2f86bedf0a1ac253242.tar.gz
pkgbuild fixed
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD27
2 files changed, 12 insertions, 17 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 124277c39f2..33f008c88bf 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -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
diff --git a/PKGBUILD b/PKGBUILD
index bda6bd7087d..c7d658cae7f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -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"
}