From 6fb82f7b73d2e140c29326cdce4c2023afb64da3 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 23 Jul 2013 08:47:28 +0200 Subject: [PATCH] New package: obconf-2.0.3.git20100309. --- srcpkgs/obconf/patches/config-file.patch | 28 +++++++++++++++++++++ srcpkgs/obconf/template | 32 ++++++++++++++++++++++++ 2 files changed, 60 insertions(+) create mode 100644 srcpkgs/obconf/patches/config-file.patch create mode 100644 srcpkgs/obconf/template diff --git a/srcpkgs/obconf/patches/config-file.patch b/srcpkgs/obconf/patches/config-file.patch new file mode 100644 index 00000000000..cdfe23d2f27 --- /dev/null +++ b/srcpkgs/obconf/patches/config-file.patch @@ -0,0 +1,28 @@ +From: Dana Jansens +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; diff --git a/srcpkgs/obconf/template b/srcpkgs/obconf/template new file mode 100644 index 00000000000..bb2a8daed0a --- /dev/null +++ b/srcpkgs/obconf/template @@ -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 " +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 + } +}