summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3019c7c07d90c67e2626bd6edfaac4f4d6537955 (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
# Maintainer: luke bonham <dada [at] archlinux [dot] info>

pkgname=lain-git
pkgcom=1527
pkgsha=b14eff9
pkgver=$pkgcom.$pkgsha
pkgrel=1
pkgdesc="Layouts, asynchronous widgets and utilities for Awesome WM"
arch=('any')
url="https://github.com/copycat-killer/lain"
license=('GPL2')
depends=('awesome')
optdepends=('curl: for widgets accessing network resources')
makedepends=('git')
provides=('lain')
conflicts=('lain')
source=("git://github.com/copycat-killer/lain.git")
md5sums=('SKIP')

package() {
  install -dm755 "$pkgdir/usr/share/awesome/lib/lain"
  git --git-dir=lain/.git --work-tree=lain/ reset --hard $pkgsha --quiet
  rm -rf lain/{wiki,.git*,*.rockspec,*TEMPLATE*}
  cp -a lain "$pkgdir/usr/share/awesome/lib/"

  # Fix permissions
  find "$pkgdir" -type f ! -path "*/scripts/*" -print0 | xargs -0 chmod -R 644
}