[arch-commits] Commit in subtle/trunk (PKGBUILD)
Alexander Rødseth
arodseth at nymeria.archlinux.org
Thu Jan 23 13:15:21 UTC 2014
Date: Thursday, January 23, 2014 @ 14:15:21
Author: arodseth
Revision: 104602
Does not compile!
Modified:
subtle/trunk/PKGBUILD
----------+
PKGBUILD | 27 +++++++++++++++++++++------
1 file changed, 21 insertions(+), 6 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2014-01-23 13:11:48 UTC (rev 104601)
+++ PKGBUILD 2014-01-23 13:15:21 UTC (rev 104602)
@@ -8,7 +8,7 @@
pkgname=subtle
pkgver=0.11.3224
-pkgrel=2
+pkgrel=4
pkgdesc='Grid-based manual tiling window manager'
arch=('x86_64' 'i686')
url='http://subtle.subforge.org/'
@@ -21,22 +21,37 @@
source=("http://subforge.org/attachments/download/81/$pkgname-$pkgver-xi.tbz2")
sha256sums=('a22ee94a70c1105a018e1c0a754597b4e3a87d1b915301a0b22888920fa0f8a2')
-build() {
- cd "$srcdir/$pkgname-$pkgver-xi"
+prepare() {
+ cd "$pkgname-$pkgver-xi"
- # Disable the check for Ruby 1.9
+ # Disable the check for Ruby 1.9 by comparing with 7.7 instead
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
+
+ # Configure the project
+ rake config
+
+ #setconf config.yml cflags _ '"'
+ #setconf config.yml cflags "\"-M -Wall -Werror -Wpointer-arith -Wstrict-prototypes -Wunused -Wshadow -std=gnu99 -DNDEBUG $CFLAGS \"" '"'
+ #setconf config.yml configdir "\"$pkgdir/etc/xdg/subtle\""
+ #sed -i 's/gcc/gcc -c/g' config.yml
}
+build() {
+ cd "$pkgname-$pkgver-xi"
+
+ rake build --trace
+}
+
package() {
- cd "$srcdir/$pkgname-$pkgver-xi"
+ cd "$pkgname-$pkgver-xi"
- rake destdir=$pkgdir install --trace
+ rake destdir="$pkgdir" install --trace
}
# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list