summaryrefslogtreecommitdiff
path: root/community/subtle/PKGBUILD
blob: cc9e5f317262889adf196d5f867e8c22b8ad625e (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
36
37
38
39
40
41
42
# $Id: PKGBUILD 86887 2013-03-23 23:10:50Z td123 $
# Maintainer: Alexander Rødseth <rodseth@gmail.com>
# Contributor: Angel Velasquez <angvp@archlinux.org> 
# Contributor: unexist <unexist@dorfelite.net>
# Contributor: Abakus <java5@arcor.de>
# Contributor: TDY <tdy@gmx.com>
# Contributor: Xilon <xilonmu@gmail.com>

pkgname=subtle
pkgver=0.11.3224
pkgrel=2
pkgdesc='Grid-based manual tiling window manager'
arch=('x86_64' 'i686' 'mips64el')
url='http://subtle.subforge.org/'
license=('GPL')
depends=('ruby' 'libxft' 'libxpm' 'libxrandr' 'libxft' 'libxpm' 'libxinerama'
         'libxtst')
makedepends=('pkg-config' 'libxinerama' 'libxrandr' 'libxft' 'libxpm')
backup=('etc/xdg/subtle/subtle.rb')
install=subtle.install
source=("http://subforge.org/attachments/download/81/$pkgname-$pkgver-xi.tbz2")
sha256sums=('a22ee94a70c1105a018e1c0a754597b4e3a87d1b915301a0b22888920fa0f8a2')

build() {
  cd "$srcdir/$pkgname-$pkgver-xi"

  # Disable the check for Ruby 1.9
  sed -i 's/ 1 != / 7 == /' Rakefile
  sed -i 's/ 9 != / 7 == /' Rakefile
  # Use vendor_ruby instead of site_ruby
  sed -e \
    's/RbConfig::CONFIG\["sitelibdir"\]/RbConfig::CONFIG\["vendorlibdir"\]/' \
    -i Rakefile
}

package() {
  cd "$srcdir/$pkgname-$pkgver-xi"

  rake destdir=$pkgdir install  --trace
}

# vim:set ts=2 sw=2 et: