New package: obconf-2.0.3.git20100309.
This commit is contained in:
parent
820fd302ee
commit
6fb82f7b73
2 changed files with 60 additions and 0 deletions
28
srcpkgs/obconf/patches/config-file.patch
Normal file
28
srcpkgs/obconf/patches/config-file.patch
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
From: Dana Jansens <danakj@orodu.net>
|
||||||
|
Date: Fri, 5 Aug 2011 16:05:10 +0000 (-0400)
|
||||||
|
Subject: Load the rc.xml config file given on --config-file the same as Openbox (use the whole ...
|
||||||
|
X-Git-Url: http://git.openbox.org/?p=dana%2Fobconf.git;a=commitdiff_plain;h=cc7a18807663313ef111d86a75844ded0416a889
|
||||||
|
|
||||||
|
Load the rc.xml config file given on --config-file the same as Openbox (use the whole path given).
|
||||||
|
---
|
||||||
|
|
||||||
|
diff --git a/src/main.c b/src/main.c
|
||||||
|
index 9035e8d..a576253 100644
|
||||||
|
--- src/main.c
|
||||||
|
+++ src/main.c
|
||||||
|
@@ -233,11 +233,10 @@ int main(int argc, char **argv)
|
||||||
|
}
|
||||||
|
|
||||||
|
xmlIndentTreeOutput = 1;
|
||||||
|
- if (!obt_xml_load_config_file(parse_i,
|
||||||
|
- "openbox",
|
||||||
|
- (obc_config_file ?
|
||||||
|
- obc_config_file : "rc.xml"),
|
||||||
|
- "openbox_config"))
|
||||||
|
+ if (!((obc_config_file &&
|
||||||
|
+ obt_xml_load_file(parse_i, obc_config_file, "openbox_config")) ||
|
||||||
|
+ obt_xml_load_config_file(parse_i, "openbox", "rc.xml",
|
||||||
|
+ "openbox_config")))
|
||||||
|
{
|
||||||
|
obconf_error(_("Failed to load an rc.xml. You have probably failed to install Openbox properly."), TRUE);
|
||||||
|
exit_with_error = TRUE;
|
32
srcpkgs/obconf/template
Normal file
32
srcpkgs/obconf/template
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
# Template file for 'obconf'
|
||||||
|
pkgname=obconf
|
||||||
|
version=2.0.3.git20100309
|
||||||
|
revision=1
|
||||||
|
build_style=gnu-configure
|
||||||
|
hostmakedepends="pkg-config automake libtool gettext-devel bsdtar"
|
||||||
|
makedepends="gtk+-devel libglade-devel libSM-devel imlib2-devel openbox-devel
|
||||||
|
startup-notification-devel desktop-file-utils shared-mime-info"
|
||||||
|
short_desc="A GTK2 based configuration tool for the Openbox windowmanager"
|
||||||
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||||
|
license="GPL-2"
|
||||||
|
homepage="http://openbox.org/wiki/ObConf:About"
|
||||||
|
distfiles="ftp://ftp.archlinux.org/other/community/${pkgname}/${pkgname}-${version}.tar.gz"
|
||||||
|
checksum=54328d05c52e62a90661d99b65038c57f852a474679339614896d7c94599948d
|
||||||
|
|
||||||
|
noextract=yes
|
||||||
|
|
||||||
|
do_extract() {
|
||||||
|
# WTF .tar.gz extension and is bzip2 compressed.
|
||||||
|
bsdtar xf ${XBPS_SRCDISTDIR}/${pkgname}-${version}.tar.gz -C ${XBPS_BUILDDIR}
|
||||||
|
}
|
||||||
|
|
||||||
|
pre_configure() {
|
||||||
|
./bootstrap
|
||||||
|
}
|
||||||
|
|
||||||
|
obconf_package() {
|
||||||
|
depends="desktop-file-utils shared-mime-info"
|
||||||
|
pkg_install() {
|
||||||
|
vmove usr
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue