summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5156770a583813326ef8d23fbbda333161326ae0 (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
29
30
31
32
33
34
35
# Maintainer: Anatol Pomozov

pkgname=subtle-git
pkgver=0.11.r21.g7f3b86a
pkgrel=1
pkgdesc='A grid-based manual tiling window manager with a strong focus on easy but customizable look and feel'
arch=(i686 x86_64)
url='http://github.com/anatol/subtle'
license=(GPL)
depends=(ruby libxrandr libxft libxpm libxinerama libxtst)
makedepends=(git pkg-config)
provides=(subtle)
conflicts=(subtle)
backup=(etc/xdg/subtle/subtle.rb)
source=(git+http://github.com/anatol/subtle)
md5sums=('SKIP')

pkgver() {
  cd subtle
  git describe --tags | sed -r 's/([^-]*-g)/r\1/;s/-/./g'
}

prepare() {
  cd subtle
  # Use vendor_ruby instead of site_ruby
  sed -e \
    's/RbConfig::CONFIG\["sitelibdir"\]/RbConfig::CONFIG\["vendorlibdir"\]/' \
    -i Rakefile
}

package() {
  cd subtle
  rake destdir="$pkgdir" install
  install -D -m644 data/subtle.desktop "$pkgdir"/usr/share/xsessions/subtle.desktop
}