summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO5
-rw-r--r--PKGBUILD44
2 files changed, 21 insertions, 28 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 30ef281c505..b2f9a882de8 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -5,13 +5,12 @@ pkgbase = lain-git
url = https://github.com/lcpz/lain
arch = any
license = GPL2
- makedepends = git
depends = awesome
optdepends = curl: for IMAP, MPD and weather widgets
provides = lain
conflicts = lain
- source = git://github.com/lcpz/lain.git
- md5sums = SKIP
+ source = lain-1735.a071cc5.zip::https://github.com/lcpz/lain/archive/a071cc5.zip
+ sha256sums = SKIP
pkgname = lain-git
diff --git a/PKGBUILD b/PKGBUILD
index 2ba7eefdd83..14878e4998b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,35 +1,29 @@
# Maintainer: Luca CPZ <luca.cpz [at] gmail [dot] com>
-pkgname=lain-git
+_pkgname=lain
+pkgname=$_pkgname-git
pkgcom=1735
pkgsha=a071cc5
pkgver=$pkgcom.$pkgsha
pkgrel=1
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')
-makedepends=('git')
-provides=('lain')
-conflicts=('lain')
-source=("git://github.com/lcpz/lain.git")
-md5sums=('SKIP')
+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")
-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"
- git --git-dir=lain/.git --work-tree=lain/ reset --hard $pkgsha --quiet
- rm -rf lain/{wiki,.git*,*.rockspec,*TEMPLATE*}
- cp -a lain $aw_path
+prepare() {
+ rm -fr "$_pkgname/$_pkgname-$pkgsha"*
+ mv "$_pkgname-$pkgsha"* $_pkgname
+}
- # fix scripts permissions
- find "$pkgdir" -type f ! -path "*/scripts/*" -print0 | xargs -0 chmod -R 644
+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"
}