summaryrefslogtreecommitdiff
path: root/community/subtle
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2014-02-23 03:33:51 +0000
committerNicolás Reynolds <fauno@endefensadelsl.org>2014-02-23 03:33:51 +0000
commit1d20e4962664ab152948a14b4320b12204a1053e (patch)
tree21362995661c2da0fb179adbd74da4391cb029ee /community/subtle
parentd681aef185938981d5b5eb582d09fbc49927cf24 (diff)
Sun Feb 23 03:31:10 UTC 2014
Diffstat (limited to 'community/subtle')
-rw-r--r--community/subtle/PKGBUILD51
-rw-r--r--community/subtle/do_not_relink_binaries_on_install.diff12
-rw-r--r--community/subtle/subtle.install5
3 files changed, 68 insertions, 0 deletions
diff --git a/community/subtle/PKGBUILD b/community/subtle/PKGBUILD
new file mode 100644
index 000000000..73bc390bc
--- /dev/null
+++ b/community/subtle/PKGBUILD
@@ -0,0 +1,51 @@
+# $Id: PKGBUILD 106073 2014-02-21 23:10:38Z anatolik $
+# Maintainer: Anatol Pomozov <anatol.pomozov@gmail.com>
+# Contributor: 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
+# check the mercurial hash at http://hg.subforge.org/subtle
+_hg_revision=3243
+_hg_hash=43d1d0478c46
+pkgver=0.11.r$_hg_revision
+pkgrel=1
+pkgdesc='Grid-based manual tiling window manager'
+arch=(x86_64 i686)
+url='http://subtle.subforge.org/'
+license=(GPL)
+depends=(ruby libxrandr libxft libxpm libxinerama libxtst)
+backup=(etc/xdg/subtle/subtle.rb)
+install=subtle.install
+source=(http://hg.subforge.org/subtle/archive/$_hg_hash.tar.bz2
+ do_not_relink_binaries_on_install.diff)
+sha256sums=('d3e29561a78a0491e6357ce60c940a1b050e99d116bffb7881d97b6a6b893137'
+ '448dd3bcc8fd3807ab0f66c1d82edccbeb830502dfe758770e7f7a76ffce35a0')
+
+prepare() {
+ cd subtle-$_hg_hash
+
+ # Use vendor_ruby instead of site_ruby
+ sed -e \
+ 's/RbConfig::CONFIG\["sitelibdir"\]/RbConfig::CONFIG\["vendorlibdir"\]/' \
+ -i Rakefile
+
+ patch -p1 < "$srcdir"/do_not_relink_binaries_on_install.diff
+}
+
+build() {
+ cd subtle-$_hg_hash
+
+ rake build revision=$_hg_revision
+}
+
+package() {
+ cd subtle-$_hg_hash
+
+ # regenerate config with proper $pkgdir, revision and cppflags are not needed at this step
+ rake config destdir="$pkgdir"
+ rake install
+}
diff --git a/community/subtle/do_not_relink_binaries_on_install.diff b/community/subtle/do_not_relink_binaries_on_install.diff
new file mode 100644
index 000000000..030fd3880
--- /dev/null
+++ b/community/subtle/do_not_relink_binaries_on_install.diff
@@ -0,0 +1,12 @@
+diff -r 71c757f2a3c4 Rakefile
+--- a/Rakefile Wed Jun 19 15:12:38 2013 +0200
++++ b/Rakefile Thu Jan 23 20:46:18 2014 -0800
+@@ -535,7 +535,7 @@
+ ##
+
+ desc("Install subtle")
+-task(:install => [:config, :build]) do
++task(:install => [:config]) do
+ verbose = (true == RakeFileUtils.verbose)
+
+ # Make install dirs
diff --git a/community/subtle/subtle.install b/community/subtle/subtle.install
new file mode 100644
index 000000000..76b832b5c
--- /dev/null
+++ b/community/subtle/subtle.install
@@ -0,0 +1,5 @@
+post_upgrade() {
+ echo "In order to use sur you can install ruby-curb and ruby-minitar."
+ echo "If you have subtle on your system remember to upgrade with:"
+ echo " sur upgrade"
+}