diff options
41 files changed, 3242 insertions, 112 deletions
diff --git a/community/ctpl/PKGBUILD b/community/ctpl/PKGBUILD index ba37f84d9..72fa74e38 100644 --- a/community/ctpl/PKGBUILD +++ b/community/ctpl/PKGBUILD @@ -1,25 +1,29 @@ -# $Id: PKGBUILD 56633 2011-10-09 09:46:57Z angvp $ -# Maintainer: Angel Velasquez <angvp@archlinux.org> +# $Id: PKGBUILD 60331 2011-12-11 14:46:35Z arodseth $ +# Maintainer: Alexander Rødseth <rodseth@gmail.com> +# Contributor: Angel Velasquez <angvp@archlinux.org> # Contributor: Patrick Melo <patrick@patrickmelo.eti.br> - pkgname=ctpl pkgver=0.3.3 -pkgrel=1 -pkgdesc="CTPL is a template engine library written in C" +pkgrel=2 +pkgdesc="Template engine library written in C" arch=('i686' 'x86_64' 'mips64el') url="http://ctpl.tuxfamily.org/" license=('GPL') depends=('glib2' 'gvfs') -source=(http://download.tuxfamily.org/ctpl/releases/$pkgname-$pkgver.tar.gz) -md5sums=('3380e06d94d921fb50b0e40ddb351daa') +options=(!libtool) +source=("http://download.tuxfamily.org/ctpl/releases/$pkgname-$pkgver.tar.gz") +sha256sums=('7da73e7d8f10d222f5685b8eb80541d7e4d342aa74673039692fa5c4e8b120a7') build() { - cd ${srcdir}/$pkgname-$pkgver + cd "$srcdir/$pkgname-$pkgver" + ./configure --prefix=/usr make } package() { - cd ${srcdir}/$pkgname-$pkgver - make DESTDIR=${pkgdir} install + cd "$srcdir/$pkgname-$pkgver" + + make DESTDIR="$pkgdir" install } +# vim:set ts=2 sw=2 et: diff --git a/community/freedroidrpg/PKGBUILD b/community/freedroidrpg/PKGBUILD index c3184d90e..85eb1d089 100644 --- a/community/freedroidrpg/PKGBUILD +++ b/community/freedroidrpg/PKGBUILD @@ -1,23 +1,23 @@ -# $Id: PKGBUILD 60014 2011-12-03 08:20:18Z spupykin $ +# $Id: PKGBUILD 60343 2011-12-11 19:59:55Z spupykin $ # Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> # Contributor: nut543 <kfs1@online.no> #pkgbase=freedroidrpg #pkgname=('freedroidrpg' 'freedroidrpg-data') pkgname='freedroidrpg' -pkgver=0.15rc1 +pkgver=0.15rc2 pkgrel=1 arch=('i686' 'x86_64' 'mips64el') # depends=('sdl_mixer' 'sdl_image' 'libogg' 'libvorbis' 'libgl' 'freedroidrpg-data') -depends=('sdl_mixer' 'sdl_image' 'sdl_gfx' 'libogg' 'libvorbis' 'libgl') +depends=('sdl_mixer' 'sdl_image' 'sdl_gfx' 'libogg' 'libvorbis' 'libgl' 'mesa') optdepends=('python2' 'espeak') pkgdesc="a mature science fiction role playing game set in the future" url="http://freedroid.sourceforge.net" license=("GPL") -source=(http://downloads.sourceforge.net/project/freedroid/freedroidRPG/freedroidRPG-0.15/freedroidrpg-$pkgver.tar.bz2 +source=(http://downloads.sourceforge.net/project/freedroid/freedroidRPG/freedroidRPG-0.15/freedroidrpg-$pkgver.tar.gz freedroidrpg.jpg freedroidrpg.desktop) -md5sums=('2309a9e7087d384a6a66e6985cc06bd7' +md5sums=('0e098aae0b16b6f87ffe5f7932580491' 'b73d9dac44c7e83a6c80fbe4eb96ba79' '9a10c2a2064439cdcff5b945dfb1c3ac') diff --git a/community/kdenlive/PKGBUILD b/community/kdenlive/PKGBUILD index c08d91af7..3294a519f 100644 --- a/community/kdenlive/PKGBUILD +++ b/community/kdenlive/PKGBUILD @@ -1,11 +1,11 @@ -# $Id: PKGBUILD 58466 2011-11-12 20:42:16Z spupykin $ +# $Id: PKGBUILD 60345 2011-12-11 20:16:27Z spupykin $ # Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> # Contributor: Zuf <kontakt.zuf@gmail.com> # Contributor: Darwin Bautista <djclue917@gmail.com> pkgname=kdenlive -pkgver=0.8.2 -pkgrel=2 +pkgver=0.8.2.1 +pkgrel=1 pkgdesc="A non-linear video editor for Linux" arch=('i686' 'x86_64' 'mips64el') url="http://www.kdenlive.org/" @@ -17,7 +17,7 @@ install=kdenlive.install options=('docs') source=("http://downloads.sourceforge.net/kdenlive/kdenlive-${pkgver}.tar.gz" glu.patch) -md5sums=('0836842f489f6142cee101842ac76c54' +md5sums=('96b39531eba98c77546e7eba45a744ce' 'fd6c5fe46419ee505c562363d41f6e9f') build() { diff --git a/community/libvirt/PKGBUILD b/community/libvirt/PKGBUILD index a7737f43b..78651e7b4 100644 --- a/community/libvirt/PKGBUILD +++ b/community/libvirt/PKGBUILD @@ -1,10 +1,10 @@ -# $Id: PKGBUILD 60240 2011-12-08 11:32:20Z spupykin $ +# $Id: PKGBUILD 60347 2011-12-11 20:18:29Z spupykin $ # Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> # Contributor: Jonathan Wiersma <archaur at jonw dot org> pkgname=libvirt pkgver=0.9.8 -pkgrel=1 +pkgrel=2 pkgdesc="API for controlling virtualization engines (openvz,kvm,qemu,virtualbox,xen,etc)" arch=('i686' 'x86_64' 'mips64el') url="http://libvirt.org/" @@ -12,7 +12,7 @@ license=('LGPL') depends=('e2fsprogs' 'gnutls' 'iptables' 'libxml2' 'parted' 'polkit' 'python2' 'avahi' 'yajl' 'libpciaccess' 'udev' 'dbus-core' 'libxau' 'libxdmcp' 'libpcap' 'curl' 'libsasl' 'libgcrypt' 'libgpg-error' 'openssl' 'libxcb' 'gcc-libs' - 'iproute2') + 'iproute2' 'netcf') makedepends=('pkgconfig' 'lvm2') optdepends=('bridge-utils: for briged networking (default)' 'dnsmasq: for NAT/DHCP for guests' diff --git a/community/moreutils/PKGBUILD b/community/moreutils/PKGBUILD index 5ae55b635..c40b6cc3f 100644 --- a/community/moreutils/PKGBUILD +++ b/community/moreutils/PKGBUILD @@ -1,16 +1,17 @@ -# $Id: PKGBUILD 58952 2011-11-20 18:08:19Z spupykin $ +# $Id: PKGBUILD 60349 2011-12-11 20:19:24Z spupykin $ # Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> # Contributor: Alessio 'mOLOk' Bolognino <themolok@gmail.com> pkgname=moreutils pkgver=0.45 -pkgrel=1 +pkgrel=2 pkgdesc="A growing collection of the unix tools that nobody thought to write thirty years ago" arch=('i686' 'x86_64' 'mips64el') url="http://kitenet.net/~joey/code/moreutils.html" license=('GPL') makedepends=('docbook2x' 'docbook-xml' 'perl-xml-sax') depends=('perl') +optdepends=('perl-timedate' 'perl-time-duration' 'perl-ipc-run') options=('!emptydirs' 'zipman') replaces=(moreutils-svn) source=(http://ftp.de.debian.org/debian/pool/main/m/moreutils/moreutils_$pkgver.tar.gz) diff --git a/community/netcf/PKGBUILD b/community/netcf/PKGBUILD new file mode 100644 index 000000000..cfc7411aa --- /dev/null +++ b/community/netcf/PKGBUILD @@ -0,0 +1,30 @@ +# $Id: PKGBUILD 60351 2011-12-11 20:20:01Z spupykin $ +# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> +# Contributor: Aurélien Wailly <aurelien.wailly@gmail.com> + +pkgname=netcf +pkgver=0.1.7 +pkgrel=2 +pkgdesc="A library for configuring network interfaces" +arch=('i686' 'x86_64') +license=('LGPL') +url="https://fedorahosted.org/netcf/" +depends=('augeas>=0.7.4' 'netcfg' 'libxslt' 'libxml2' 'libnl') +makedepends=('gcc') +options=(!libtool) +source=("https://fedorahosted.org/released/netcf/$pkgname-$pkgver.tar.gz" + netcf-0.1.7.patch) +md5sums=('8e313b623c907eb035cf3948b71fecc2' + '0e88ee6813219e9e75a943444fe439f5') + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + patch -Np1 -i ${srcdir}/netcf-0.1.7.patch + ./configure --prefix=/usr + make +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + make DESTDIR=${pkgdir} install +} diff --git a/community/netcf/netcf-0.1.7.patch b/community/netcf/netcf-0.1.7.patch new file mode 100644 index 000000000..d4a4d31b7 --- /dev/null +++ b/community/netcf/netcf-0.1.7.patch @@ -0,0 +1,426 @@ +diff -ur netcf-0.1.7.ori//data/xml/initscripts-get.xsl netcf-0.1.7/data/xml/initscripts-get.xsl +--- netcf-0.1.7.ori//data/xml/initscripts-get.xsl 2009-10-04 08:18:41.000000000 +0200 ++++ netcf-0.1.7/data/xml/initscripts-get.xsl 2010-12-08 14:54:28.891813397 +0100 +@@ -47,9 +47,12 @@ + <xsl:template name="vlan-interface-common"> + <xsl:variable name="iface" select="concat(vlan/interface/@name, '.', vlan/@tag)"/> + +- <xsl:attribute name="path">/files/etc/sysconfig/network-scripts/ifcfg-<xsl:value-of select="$iface"/></xsl:attribute> +- <node label="DEVICE" value="{$iface}"/> +- <node label="VLAN" value="yes"/> ++ <xsl:attribute name="path">/files/etc/network.d/ifcfg-<xsl:value-of select="$iface"/></xsl:attribute> ++ <node label="INTERFACE" value="{$iface}"/> ++ <node label="PHYS_INTERFACE" value="{vlan/interface/@name}"/> ++ <node label="VLAN" value="{vlan/@tag}"/> ++ <node label="CONNECTION" value="ethernet-iproute-vlan"/> ++ <node label="FLAG" value="false"/> + </xsl:template> + + <xsl:template name='bare-vlan-interface'> +@@ -68,6 +71,7 @@ + <xsl:call-template name="startmode"/> + <xsl:call-template name="mtu"/> + <node label="TYPE" value="Bridge"/> ++ <node label="CONNECTION" value="bridge"/> + <xsl:call-template name="interface-addressing"/> + <xsl:if test="bridge/@stp"> + <node label="STP" value="{bridge/@stp}"/> +@@ -75,7 +79,11 @@ + <xsl:if test="bridge/@delay"> + <node label="DELAY" value="{bridge/@delay}"/> + </xsl:if> ++ <node label="DHCP_TIMEOUT" value="0"/> ++ <!-- ++ We don't have to define interfaces separately + </tree> ++ + <xsl:for-each select='bridge/interface'> + <tree> + <xsl:if test="@type = 'ethernet'"> +@@ -87,12 +95,29 @@ + <xsl:if test="@type = 'bond'"> + <xsl:call-template name="bare-bond-interface"/> + </xsl:if> ++ ++ BRIDGE_INTERFACES= is defined with all interfaces + <node label="BRIDGE" value="{../../@name}"/> ++ ++ <xsl:variable name="bridgeifaces" select="concat($bridgeifaces, '.', @name)"/> + </tree> + <xsl:if test="@type = 'bond'"> + <xsl:call-template name="bond-slaves"/> + </xsl:if> + </xsl:for-each> ++ --> ++ <!-- <xsl:if test="count(ip) > 1"> --> ++ <node label="BRIDGE_INTERFACES"> ++ <xsl:attribute name="value"> ++ <xsl:text></xsl:text> ++ <xsl:for-each select="bridge/interface"> ++ <xsl:value-of select="@name"/><xsl:value-of select="string(' ')"/> ++ </xsl:for-each> ++ <xsl:text></xsl:text> ++ </xsl:attribute> ++ </node> ++ <!-- </xsl:if> --> ++ </tree> + </xsl:template> + + <!-- +@@ -138,8 +163,8 @@ + Named templates, following the Relax NG syntax + --> + <xsl:template name="name-attr"> +- <xsl:attribute name="path">/files/etc/sysconfig/network-scripts/ifcfg-<xsl:value-of select="@name"/></xsl:attribute> +- <node label="DEVICE" value="{@name}"/> ++ <xsl:attribute name="path">/files/etc/network.d/ifcfg-<xsl:value-of select="@name"/></xsl:attribute> ++ <node label="INTERFACE" value="{@name}"/> + </xsl:template> + + <xsl:template name="mtu"> +@@ -153,6 +178,7 @@ + <xsl:if test="mac"> + <node label="HWADDR" value="{mac/@address}"/> + </xsl:if> ++ <node label="CONNECTION" value="{@type}"/> + <xsl:call-template name="startmode"/> + <xsl:call-template name="mtu"/> + </xsl:template> +@@ -184,14 +210,14 @@ + <xsl:template name="protocol-ipv4"> + <xsl:choose> + <xsl:when test="dhcp"> +- <node label="BOOTPROTO" value="dhcp"/> ++ <node label="IP" value="dhcp"/> + <xsl:if test="dhcp/@peerdns"> + <node label="PEERDNS" value="{dhcp/@peerdns}"/> + </xsl:if> + </xsl:when> + <xsl:when test="ip"> +- <node label="BOOTPROTO" value="none"/> +- <node label="IPADDR" value="{ip/@address}"/> ++ <node label="IP" value="static"/> ++ <node label="ADDR" value="{ip/@address}"/> + <xsl:if test="ip/@prefix"> + <node label="NETMASK" value="{ipcalc:netmask(ip/@prefix)}"/> + </xsl:if> +diff -ur netcf-0.1.7.ori//data/xml/initscripts-put.xsl netcf-0.1.7/data/xml/initscripts-put.xsl +--- netcf-0.1.7.ori//data/xml/initscripts-put.xsl 2009-10-04 08:18:41.000000000 +0200 ++++ netcf-0.1.7/data/xml/initscripts-put.xsl 2010-11-26 10:44:46.133757628 +0100 +@@ -47,7 +47,7 @@ + </xsl:template> + + <xsl:template name="bare-vlan-interface"> +- <xsl:variable name="name" select="node[@label = 'DEVICE']/@value"/> ++ <xsl:variable name="name" select="node[@label = 'INTERFACE']/@value"/> + <interface type="vlan"> + <xsl:call-template name="name-attr"/> + <xsl:call-template name="vlan-device"/> +@@ -55,7 +55,7 @@ + </xsl:template> + + <xsl:template name="vlan-device"> +- <xsl:variable name="name" select="node[@label = 'DEVICE']/@value"/> ++ <xsl:variable name="name" select="node[@label = 'INTERFACE']/@value"/> + <xsl:variable name="device" select="substring-before($name, '.')"/> + <xsl:variable name="tag" select="substring-after($name, '.')"/> + <vlan tag="{$tag}"> +@@ -70,7 +70,7 @@ + match="tree[node[@label = 'TYPE' and @value = 'Bridge']]"> + <interface type="bridge"> + <!-- the bridge node itself --> +- <xsl:variable name="iface" select="node[@label= 'DEVICE']/@value"/> ++ <xsl:variable name="iface" select="node[@label= 'INTERFACE']/@value"/> + <xsl:call-template name="name-attr"/> + <xsl:call-template name="startmode"/> + <xsl:call-template name="mtu"/> +@@ -101,17 +101,17 @@ + Bond + --> + <xsl:template name="bond-element"> +- <xsl:variable name="iface" select="node[@label= 'DEVICE']/@value"/> ++ <xsl:variable name="iface" select="node[@label= 'INTERFACE']/@value"/> + <bond> + <xsl:variable name="opts" select="node[@label = 'BONDING_OPTS']/@value"/> + <xsl:call-template name="bonding-opts"> + <xsl:with-param name="opts" select="$opts"/> + </xsl:call-template> + <xsl:variable name="primary" select="bond:option($opts, 'primary')"/> +- <xsl:for-each select="/descendant-or-self::*[node[@label = 'MASTER' and @value = $iface]][node[@label = 'DEVICE' and @value = $primary]]"> ++ <xsl:for-each select="/descendant-or-self::*[node[@label = 'MASTER' and @value = $iface]][node[@label = 'INTERFACE' and @value = $primary]]"> + <xsl:call-template name='bare-ethernet-interface'/> + </xsl:for-each> +- <xsl:for-each select="/descendant-or-self::*[node[@label = 'MASTER' and @value = $iface]][node[@label = 'DEVICE' and @value != $primary]]"> ++ <xsl:for-each select="/descendant-or-self::*[node[@label = 'MASTER' and @value = $iface]][node[@label = 'INTERFACE' and @value != $primary]]"> + <xsl:call-template name='bare-ethernet-interface'/> + </xsl:for-each> + </bond> +@@ -125,7 +125,7 @@ + </xsl:template> + + <xsl:template name="bond-interface" +- match="tree[node[@label = 'DEVICE'][@value = //tree/node[@label = 'MASTER']/@value]][count(node[@label = 'BRIDGE']) = 0]"> ++ match="tree[node[@label = 'INTERFACE'][@value = //tree/node[@label = 'MASTER']/@value]][count(node[@label = 'BRIDGE']) = 0]"> + <interface type="bond"> + <xsl:call-template name="name-attr"/> + <xsl:call-template name="startmode"/> +@@ -154,7 +154,7 @@ + + <xsl:template name="name-attr"> + <xsl:attribute name="name"> +- <xsl:value-of select="node[@label= 'DEVICE']/@value"/> ++ <xsl:value-of select="node[@label= 'INTERFACE']/@value"/> + </xsl:attribute> + </xsl:template> + +@@ -173,7 +173,7 @@ + <xsl:variable name="uses_dhcp" + select="node[@label = 'BOOTPROTO']/@value = 'dhcp'"/> + <xsl:variable name="uses_static" +- select="count(node[@label = 'IPADDR']) > 0"/> ++ select="count(node[@label = 'ADDR']) > 0"/> + <xsl:variable name="uses_ipv4" select="$uses_dhcp or $uses_static"/> + <xsl:if test="$uses_ipv4"> + <protocol family="ipv4"> +@@ -186,7 +186,7 @@ + </dhcp> + </xsl:when> + <xsl:when test="$uses_static"> +- <ip address="{node[@label = 'IPADDR']/@value}"> ++ <ip address="{node[@label = 'ADDR']/@value}"> + <xsl:choose> + <xsl:when test="node[@label = 'PREFIX']"> + <xsl:attribute name="prefix"><xsl:value-of select="node[@label = 'PREFIX']/@value"/></xsl:attribute> +diff -ur netcf-0.1.7.ori//src/drv_initscripts.c netcf-0.1.7/src/drv_initscripts.c +--- netcf-0.1.7.ori//src/drv_initscripts.c 2010-09-23 14:13:13.000000000 +0200 ++++ netcf-0.1.7/src/drv_initscripts.c 2010-12-08 13:57:02.027361706 +0100 +@@ -49,17 +49,20 @@ + #include <libexslt/exslt.h> + + static const char *const network_scripts_path = +- "/files/etc/sysconfig/network-scripts"; ++ //"/files/etc/sysconfig/network-scripts"; ++ "/files/etc/network.d/*"; + + static const char *const ifcfg_path = +- "/files/etc/sysconfig/network-scripts/*"; ++ //"/files/etc/sysconfig/network-scripts/*"; ++ "/files/etc/network.d/*"; + + /* Augeas should only load the files we are interested in */ + static const struct augeas_pv augeas_xfm_common_pv[] = { + /* Ifcfg files */ + { "/augeas/load/Ifcfg/lens", "Sysconfig.lns" }, + { "/augeas/load/Ifcfg/incl", +- "/etc/sysconfig/network-scripts/ifcfg-*" }, ++ "/etc/network.d/ifcfg-*" }, ++ //"/etc/sysconfig/network-scripts/ifcfg-*" }, + { "/augeas/load/Ifcfg/excl[1]", "*~" }, + { "/augeas/load/Ifcfg/excl[2]", "*.bak" }, + { "/augeas/load/Ifcfg/excl[3]", "*.orig" }, +@@ -107,10 +110,10 @@ + int nmatches; + + nmatches = aug_fmt_match(ncf, NULL, +- "%s[ DEVICE = '%s'" ++ "%s[ INTERFACE = '%s'" + " or BRIDGE = '%s'" + " or MASTER = '%s'" +- " or MASTER = ../*[BRIDGE = '%s']/DEVICE ]/DEVICE", ++ " or MASTER = ../*[BRIDGE = '%s']/INTERFACE ]/INTERFACE", + ifcfg_path, name, name, name, name); + return nmatches > 0; + } +@@ -173,7 +176,7 @@ + aug = get_augeas(ncf); + ERR_BAIL(ncf); + +- ndevs = aug_fmt_match(ncf, &devs, "%s[DEVICE = '%s']", ++ ndevs = aug_fmt_match(ncf, &devs, "%s[INTERFACE = '%s']", + ifcfg_path, name); + ERR_COND_BAIL(ndevs < 0, ncf, EOTHER); + +@@ -296,7 +299,8 @@ + int result = 0, ndevs; + char **devs = NULL; + +- ndevs = aug_fmt_match(ncf, &devs, "%s/DEVICE", ifcfg_path); ++ ndevs = aug_fmt_match(ncf, &devs, "%s/INTERFACE", ifcfg_path); ++ printf("%i\n", ndevs); + ERR_COND_BAIL(ndevs < 0, ncf, EOTHER); + + result = uniq_ifcfg_paths(ncf, ndevs, devs, intf); +@@ -453,11 +457,11 @@ + + int drv_list_interfaces(struct netcf *ncf, int maxnames, char **names, + unsigned int flags) { +- return list_interface_ids(ncf, maxnames, names, flags, "DEVICE"); ++ return list_interface_ids(ncf, maxnames, names, flags, "INTERFACE"); + } + + int drv_num_of_interfaces(struct netcf *ncf, unsigned int flags) { +- return list_interface_ids(ncf, 0, NULL, flags, "DEVICE"); ++ return list_interface_ids(ncf, 0, NULL, flags, "INTERFACE"); + } + + struct netcf_if *drv_lookup_by_name(struct netcf *ncf, const char *name) { +@@ -599,8 +603,8 @@ + + ncf = nif->ncf; + ndevs = aug_fmt_match(ncf, &devs, +- "%s[ DEVICE = '%s' or BRIDGE = '%s' or MASTER = '%s'" +- " or MASTER = ../*[BRIDGE = '%s']/DEVICE ]/DEVICE", ++ "%s[ INTERFACE = '%s' or BRIDGE = '%s' or MASTER = '%s'" ++ " or MASTER = ../*[BRIDGE = '%s']/INTERFACE ]/INTERFACE", + ifcfg_path, nif->name, nif->name, nif->name, nif->name); + ERR_BAIL(ncf); + +@@ -745,7 +749,7 @@ + int nmatches = 0; + + nmatches = aug_fmt_match(ncf, NULL, +- "%s[ DEVICE = '%s' and TYPE = 'Bridge']", ++ "%s[ INTERFACE = '%s' and TYPE = 'Bridge']", + ifcfg_path, name); + return nmatches > 0; + } +@@ -758,7 +762,7 @@ + ERR_BAIL(ncf); + + nslaves = aug_fmt_match(ncf, slaves, +- "%s[ BRIDGE = '%s' ]/DEVICE", ifcfg_path, name); ++ "%s[ BRIDGE = '%s' ]/INTERFACE", ifcfg_path, name); + ERR_BAIL(ncf); + for (int i=0; i < nslaves; i++) { + char *p = (*slaves)[i]; +@@ -790,8 +794,8 @@ + /* The last or clause catches slaves of a bond that are enslaved to + * a bridge NAME */ + r = xasprintf(&path, +- "%s[ DEVICE = '%s' or BRIDGE = '%s' or MASTER = '%s' " +- " or MASTER = ../*[BRIDGE = '%s']/DEVICE ]", ++ "%s[ INTERFACE = '%s' or BRIDGE = '%s' or MASTER = '%s' " ++ " or MASTER = ../*[BRIDGE = '%s']/INTERFACE ]", + ifcfg_path, name, name, name, name); + ERR_NOMEM(r < 0, ncf); + +@@ -967,7 +971,7 @@ + for (int i = 0; i < nmatches; i++) { + if (!has_ifcfg_file(ncf, matches[i])) + continue; +- r = xasprintf(&ifcfg, "%s[DEVICE = '%s']", ifcfg_path, matches[i]); ++ r = xasprintf(&ifcfg, "%s[INTERFACE = '%s']", ifcfg_path, matches[i]); + ERR_NOMEM(r < 0, ncf); + + if (! is_slave(ncf, ifcfg)) +@@ -1023,7 +1027,10 @@ + */ + + int drv_if_up(struct netcf_if *nif) { +- static const char *const ifup = "ifup"; ++ //static const char *const ifup = "ifup"; ++ static const char *const ifup = "netcfg"; ++ static const char *const ifprefix = "ifcfg-"; ++ char ifname[strlen(nif->name) + sizeof(ifprefix)]; + struct netcf *ncf = nif->ncf; + char **slaves = NULL; + int nslaves = 0; +@@ -1035,11 +1042,24 @@ + ERR_BAIL(ncf); + + for (int i=0; i < nslaves; i++) { +- run1(ncf, ifup, slaves[i]); ++ //run1(ncf, ifup, slaves[i]); ++ const char *const argv[] = { ++ ifup, "-u", slaves[i], NULL ++ }; ++ ++ run_program(ncf, argv); + ERR_BAIL(ncf); + } + } +- run1(ncf, ifup, nif->name); ++ //run1(ncf, ifup, nif->name); ++ /* Interfaces name have to be equal to script under /etc/network.d */ ++ strcpy(ifname, ifprefix); ++ strcat(ifname, nif->name); ++ const char *const argv[] = { ++ ifup, "-u", ifname, NULL ++ }; ++ ++ run_program(ncf, argv); + ERR_BAIL(ncf); + result = 0; + error: +@@ -1048,13 +1068,23 @@ + } + + int drv_if_down(struct netcf_if *nif) { +- static const char *const ifdown = "ifdown"; ++ //static const char *const ifdown = "ifdown"; ++ static const char *const ifdown = "netcfg"; ++ static const char *const ifprefix = "ifcfg-"; ++ char ifname[strlen(nif->name) + sizeof(ifprefix)]; + struct netcf *ncf = nif->ncf; + char **slaves = NULL; + int nslaves = 0; + int result = -1; + +- run1(ncf, ifdown, nif->name); ++ //run1(ncf, ifdown, nif->name); ++ strcpy(ifname, ifprefix); ++ strcat(ifname, nif->name); ++ const char *const argv[] = { ++ ifdown, "-d", ifname, NULL ++ }; ++ ++ run_program(ncf, argv); + ERR_BAIL(ncf); + if (is_bridge(ncf, nif->name)) { + /* Bring up bridge slaves after the bridge */ +@@ -1062,7 +1092,12 @@ + ERR_BAIL(ncf); + + for (int i=0; i < nslaves; i++) { +- run1(ncf, ifdown, slaves[i]); ++ //run1(ncf, ifdown, slaves[i]); ++ const char *const argvs[] = { ++ ifdown, "-d", slaves[i], NULL ++ }; ++ ++ run_program(ncf, argvs); + ERR_BAIL(ncf); + } + } +diff -ur netcf-0.1.7.ori//tests/interface/bridge.xml~ netcf-0.1.7/tests/interface/bridge.xml~ +--- netcf-0.1.7.ori//tests/interface/bridge.xml~ 2009-10-13 19:14:53.000000000 +0200 ++++ netcf-0.1.7/tests/interface/bridge.xml~ 2009-10-14 05:09:05.000000000 +0200 +@@ -2,10 +2,12 @@ + <start mode="onboot"/> + <mtu size="1500"/> + <protocol family="ipv4"> +- <ip address="192.168.80.5" prefix="24"/> ++ <dhcp/> + </protocol> + <bridge stp="off" delay="0.01"> + <interface type="ethernet" name="eth0"> ++ <mac address="ab:bb:cc:dd:ee:ff"/> + </interface> ++ <interface type="ethernet" name="eth1"/> + </bridge> + </interface> +diff -ur netcf-0.1.7.ori//tests/interface/vlan.xml~ netcf-0.1.7/tests/interface/vlan.xml~ +--- netcf-0.1.7.ori//tests/interface/vlan.xml~ 2010-07-30 06:02:39.000000000 +0200 ++++ netcf-0.1.7/tests/interface/vlan.xml~ 2010-09-07 18:26:22.000000000 +0200 +@@ -1,9 +1,9 @@ +-<interface type="vlan" name="eth1.42"> ++<interface type="vlan" name="eth0.42"> + <start mode="onboot"/> + <protocol family="ipv4"> + <dhcp peerdns="no"/> + </protocol> + <vlan tag="42"> +- <interface name="eth1"/> ++ <interface name="eth0"/> + </vlan> + </interface> diff --git a/community/winefish/PKGBUILD b/community/winefish/PKGBUILD index 294f1f6f5..9ffbc3db8 100644 --- a/community/winefish/PKGBUILD +++ b/community/winefish/PKGBUILD @@ -1,16 +1,17 @@ -# $Id: PKGBUILD 23711 2010-08-15 05:56:23Z shusmann $ +# $Id: PKGBUILD 60333 2011-12-11 17:42:32Z bpiotrowski $ +# Maintainer: Bartłomiej Piotrowski <barthalion@gmail.com> # Contributor: Allan McRae <allan@archlinux.org> # Contributor: Claudio Riva <firetux83@gmail.com> -# Maintainer: Stefan Husmann <stefan-husmann@t-online.de> +# Contributor: Stefan Husmann <stefan-husmann@t-online.de> pkgname=winefish pkgver=1.3.3 -pkgrel=9 +pkgrel=10 pkgdesc="LaTeX editor based on Bluefish with auto-completion and syntax highlighting" url="http://winefish.berlios.de/" arch=('i686' 'x86_64' 'mips64el') license=('GPL') -depends=('libgnomeui') +depends=('gtk2' 'desktop-file-utils' 'shared-mime-info') makedepends=('pkgconfig') optdepends=('aspell: for spell check') install=$pkgname.install diff --git a/extra/doxygen/PKGBUILD b/extra/doxygen/PKGBUILD index 00d2269e5..4dbdf8ecc 100644 --- a/extra/doxygen/PKGBUILD +++ b/extra/doxygen/PKGBUILD @@ -1,17 +1,17 @@ -# $Id: PKGBUILD 144489 2011-12-06 22:57:33Z dan $ +# $Id: PKGBUILD 144948 2011-12-11 16:47:15Z dan $ # Maintainer: Dan McGee <dan@archlinux.org> pkgbase=doxygen pkgname=('doxygen' 'doxygen-docs') -pkgver=1.7.6 +pkgver=1.7.6.1 pkgrel=1 license=('GPL') arch=(i686 x86_64 'mips64el') url="http://www.doxygen.org/" makedepends=('gcc-libs' 'flex' 'qt' 'texlive-core' 'ghostscript' 'texlive-latexextra') source=(ftp://ftp.stack.nl/pub/users/dimitri/${pkgname}-${pkgver}.src.tar.gz) -md5sums=('79f67eea3d43a5c9964194786d786f37') -sha1sums=('6c63ece66875c9312b76bfe11d688e1b1ae2e3bb') +md5sums=('084f1db244b77b3abff335550ef8eec5') +sha1sums=('6203d4423d12315f1094b56a4d7393347104bc4a') build() { cd "${srcdir}/${pkgbase}-${pkgver}" diff --git a/extra/ffmpeg/PKGBUILD b/extra/ffmpeg/PKGBUILD index 7125acf0d..821fe2277 100644 --- a/extra/ffmpeg/PKGBUILD +++ b/extra/ffmpeg/PKGBUILD @@ -1,26 +1,27 @@ -# $Id: PKGBUILD 143216 2011-11-23 13:53:15Z ibiru $ +# $Id: PKGBUILD 144952 2011-12-11 23:12:10Z ibiru $ # Maintainer : Ionut Biru <ibiru@archlinux.org> # Contributor: Tom Newsom <Jeepster@gmx.co.uk> # Contributor: Paul Mattal <paul@archlinux.org> pkgname=ffmpeg -pkgver=20111123 +pkgver=20111211 pkgrel=1 pkgdesc="Complete and free Internet live audio and video broadcasting solution for Linux/Unix" arch=('i686' 'x86_64' 'mips64el') url="http://ffmpeg.org/" license=('GPL') +<<<<<<< HEAD if [ "${CARCH}" = "mips64el" ] ; then - depends=('bzip2' 'lame' 'sdl' 'libvorbis' 'xvidcore' 'zlib' 'x264' 'libtheora' 'opencore-amr' 'alsa-lib' 'libxfixes' 'schroedinger' 'libvpx' 'openjpeg' 'rtmpdump' 'speex' 'gsm') - makedepends=('git' 'pkg-config') + depends=(alsa-lib bzip2 gsm lame libpulse libtheora libvorbis libvpx opencore-amr openjpeg rtmpdump schroedinger sdl speex x264 xvidcore zlib) + makedepends=('git') else - depends=('bzip2' 'lame' 'sdl' 'libvorbis' 'xvidcore' 'zlib' 'x264' 'libtheora' 'opencore-amr' 'alsa-lib' 'libvdpau' 'libxfixes' 'schroedinger' 'libvpx' 'libva' 'openjpeg' 'rtmpdump' 'speex' 'gsm') - makedepends=('yasm' 'git' 'pkg-config') + depends=(alsa-lib bzip2 gsm lame libpulse libtheora libva libvdpau libvorbis libvpx opencore-amr openjpeg rtmpdump schroedinger sdl speex x264 xvidcore zlib) + makedepends=('yasm' 'git') fi #git clone git://git.videolan.org/ffmpeg.git source=(ftp://ftp.archlinux.org/other/ffmpeg/${pkgname}-${pkgver}.tar.xz ffmpeg-loongson.patch) -md5sums=('8ec30d05efe0f6cc6f702933e6781e8e' +md5sums=('75d512bf5137d0b055e54313702ef5fc' '99d412cb539f328dbc37d5ead3407fc7') build() { @@ -52,6 +53,7 @@ build() { --enable-libschroedinger \ --enable-libopenjpeg \ --enable-librtmp \ + --enable-libpulse \ --enable-gpl \ --enable-version3 \ --enable-runtime-cpudetect \ diff --git a/extra/gtk3/PKGBUILD b/extra/gtk3/PKGBUILD index 09cb31dd1..d120c46b6 100644 --- a/extra/gtk3/PKGBUILD +++ b/extra/gtk3/PKGBUILD @@ -1,9 +1,9 @@ -# $Id: PKGBUILD 143841 2011-11-29 20:18:51Z ibiru $ +# $Id: PKGBUILD 144950 2011-12-11 21:22:27Z ibiru $ # Maintainer: Ionut Biru <ibiru@archlinux.org> pkgname=gtk3 pkgver=3.2.2 -pkgrel=3 +pkgrel=4 pkgdesc="GTK+ is a multi-platform toolkit (v3)" arch=('i686' 'x86_64' 'mips64el') url="http://www.gtk.org/" @@ -15,14 +15,17 @@ backup=(etc/gtk-3.0/settings.ini) license=('LGPL') source=(http://ftp.gnome.org/pub/gnome/sources/gtk+/3.2/gtk+-$pkgver.tar.xz settings.ini - filechooserdefault_do_not_unref_value_twice.patch) + filechooserdefault_do_not_unref_value_twice.patch + moveresize.patch) sha256sums=('f7ec82de393cd7ae2aa45022576400941704709d1f0f35fb0b17f3be1f2e7d84' 'c214d3dcdcadda3d642112287524ab3e526ad592b70895c9f3e3733c23701621' - '0d6b04d5fc12b7c08e0cff4b94d001d5c167a944b72579fb14fd6de2ee4ad9e6') + '0d6b04d5fc12b7c08e0cff4b94d001d5c167a944b72579fb14fd6de2ee4ad9e6' + '627f430ccecc95ec61d9a83607469e71e95568c077f7bda849a7fe1c02d0bea7') build() { cd "$srcdir/gtk+-$pkgver" patch -Np1 -i "$srcdir/filechooserdefault_do_not_unref_value_twice.patch" + patch -Np1 -i "$srcdir/moveresize.patch" CXX=/bin/false ./configure --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ diff --git a/extra/gtk3/moveresize.patch b/extra/gtk3/moveresize.patch new file mode 100644 index 000000000..a2795fcc8 --- /dev/null +++ b/extra/gtk3/moveresize.patch @@ -0,0 +1,47 @@ +From 89c90ed193331d2ee96f323e10aaafd4366f4b0e Mon Sep 17 00:00:00 2001 +From: Matthias Clasen <mclasen@redhat.com> +Date: Sat, 10 Dec 2011 02:21:09 +0000 +Subject: Fix move-resize emulation with XI2 + +https://bugzilla.gnome.org/show_bug.cgi?id=650943 +--- +diff --git a/gdk/x11/gdkwindow-x11.c b/gdk/x11/gdkwindow-x11.c +index 1ff816e..d48927f 100644 +--- a/gdk/x11/gdkwindow-x11.c ++++ b/gdk/x11/gdkwindow-x11.c +@@ -4296,6 +4296,33 @@ _gdk_x11_moveresize_handle_event (XEvent *event) + if (event->xbutton.button == mv_resize->moveresize_button) + finish_drag (mv_resize); + break; ++ ++#ifdef HAVE_XGENERICEVENTS ++ case GenericEvent: ++ { ++ /* we just assume this is an XI2 event */ ++ XIEvent *ev = (XIEvent *) event->xcookie.data; ++ XIDeviceEvent *xev = (XIDeviceEvent *)ev; ++ gint state; ++ switch (ev->evtype) ++ { ++ case XI_Motion: ++ update_pos (mv_resize, xev->root_x, xev->root_y); ++ state = _gdk_x11_device_xi2_translate_state (&xev->mods, &xev->buttons, &xev->group); ++ if ((state & button_mask) == 0) ++ finish_drag (mv_resize); ++ break; ++ ++ case XI_ButtonRelease: ++ update_pos (mv_resize, xev->root_x, xev->root_y); ++ if (xev->detail == mv_resize->moveresize_button) ++ finish_drag (mv_resize); ++ break; ++ } ++ } ++ break; ++#endif ++ + } + return TRUE; + } +-- +cgit v0.9.0.2 diff --git a/extra/kdevplatform/PKGBUILD b/extra/kdevplatform/PKGBUILD index e01c3d51e..aeb6b863a 100644 --- a/extra/kdevplatform/PKGBUILD +++ b/extra/kdevplatform/PKGBUILD @@ -1,23 +1,29 @@ -# $Id: PKGBUILD 128645 2011-06-25 10:59:34Z andrea $ -# Maintainer: Andrea Scarpino <andrea@archlinux.org> +# $Id: PKGBUILD 144956 2011-12-12 01:44:18Z andrea $ +# Maintainer: +# Contributor: Andrea Scarpino <andrea@archlinux.org> # Contributor: Giovanni Scafora <giovanni@archlinux.org> pkgname=kdevplatform pkgver=1.2.3 _pkgver=4.2.3 -pkgrel=1 +pkgrel=2 pkgdesc="A C/C++ development platform for KDE" arch=('i686' 'x86_64' 'mips64el') url="http://www.kdevelop.org/" license=('GPL') -depends=('kdelibs' 'boost-libs' 'subversion' 'qjson') +depends=('kdelibs''subversion' 'qjson') optdepends=("kdesdk-kompare: difference checking") makedepends=('cmake' 'automoc4' 'boost') install=${pkgname}.install -source=("http://download.kde.org/stable/kdevelop/${_pkgver}/src/${pkgname}-${pkgver}.tar.bz2") -sha1sums=('c8badd157c2477b1b299403d01d40f68a1ba14cd') +source=("http://download.kde.org/stable/kdevelop/${_pkgver}/src/${pkgname}-${pkgver}.tar.bz2" + 'subversion17.patch') +sha1sums=('c8badd157c2477b1b299403d01d40f68a1ba14cd' + '08e2ab2005a7a447f1733e8449a9bc926035fb9e') build() { + cd "${srcdir}"/${pkgname}-${pkgver} + patch -p1 -i "${srcdir}"/subversion17.patch + cd "${srcdir}" mkdir build cd build diff --git a/extra/kdevplatform/subversion17.patch b/extra/kdevplatform/subversion17.patch new file mode 100644 index 000000000..782ac38ea --- /dev/null +++ b/extra/kdevplatform/subversion17.patch @@ -0,0 +1,127 @@ +commit 74dec52749e3c3af2ac6492f50e2676128f35b27 +Author: Milian Wolff <mail@milianw.de> +Date: Fri Nov 18 16:26:06 2011 +0100 + + fix svn api usage: use svn_dirent_canonicalize instead of svn_path_internal_style + + this was suggested by Stephan Sperling + + CCBUG: 284061 + +diff --git a/plugins/subversion/kdevsvncpp/path.cpp b/plugins/subversion/kdevsvncpp/path.cpp +index eaa84c1..4dced08 100644 +--- a/plugins/subversion/kdevsvncpp/path.cpp ++++ b/plugins/subversion/kdevsvncpp/path.cpp +@@ -24,6 +24,7 @@ + + // subversion api + #include "svn_path.h" ++#include "svn_dirent_uri.h" + + // apr api + #include "apr_file_io.h" +@@ -63,8 +64,7 @@ namespace svn + m_path = ""; + else + { +- const char * int_path = +- svn_path_internal_style(path, pool.pool()); ++ const char * int_path = svn_dirent_canonicalize(path, pool); + + m_path = int_path; + +commit cc7f0798d314cdac14b90e427abe22e99c6bd591 +Author: Milian Wolff <mail@milianw.de> +Date: Fri Nov 18 16:23:36 2011 +0100 + + properly initialize client context for compatibility with subversion API + + this should hopefully fix the crash with svn 1.7 in kdevelop, please test + + BUG: 284061 + +diff --git a/plugins/subversion/kdevsvncpp/context.cpp b/plugins/subversion/kdevsvncpp/context.cpp +index d277591..ddbb657 100644 +--- a/plugins/subversion/kdevsvncpp/context.cpp ++++ b/plugins/subversion/kdevsvncpp/context.cpp +@@ -65,7 +65,7 @@ public: + bool logIsSet; + int promptCounter; + Pool pool; +- svn_client_ctx_t ctx; ++ svn_client_ctx_t * ctx; + std::string username; + std::string password; + std::string logMessage; +@@ -205,26 +205,26 @@ public: + svn_auth_open(&ab, providers, pool); + + // initialize ctx structure +- memset(&ctx, 0, sizeof(ctx)); ++ svn_client_create_context(&ctx, pool); + + // get the config based on the configDir passed in +- svn_config_get_config(&ctx.config, c_configDir, pool); ++ svn_config_get_config(&ctx->config, c_configDir, pool); + + // tell the auth functions where the config is + svn_auth_set_parameter(ab, SVN_AUTH_PARAM_CONFIG_DIR, + c_configDir); + +- ctx.auth_baton = ab; +- ctx.log_msg_func = onLogMsg; +- ctx.log_msg_baton = this; +- ctx.notify_func = onNotify; +- ctx.notify_baton = this; +- ctx.cancel_func = onCancel; +- ctx.cancel_baton = this; ++ ctx->auth_baton = ab; ++ ctx->log_msg_func = onLogMsg; ++ ctx->log_msg_baton = this; ++ ctx->notify_func = onNotify; ++ ctx->notify_baton = this; ++ ctx->cancel_func = onCancel; ++ ctx->cancel_baton = this; + + #if (SVN_VER_MAJOR >= 1) && (SVN_VER_MINOR >= 2) +- ctx.notify_func2 = onNotify2; +- ctx.notify_baton2 = this; ++ ctx->notify_func2 = onNotify2; ++ ctx->notify_baton2 = this; + #endif + } + +@@ -234,7 +234,7 @@ public: + if (!value) + param = (void *)"1"; + +- svn_auth_set_parameter(ctx.auth_baton, ++ svn_auth_set_parameter(ctx->auth_baton, + SVN_AUTH_PARAM_NO_AUTH_CACHE, + param); + } +@@ -245,7 +245,7 @@ public: + username = usr; + password = pwd; + +- svn_auth_baton_t * ab = ctx.auth_baton; ++ svn_auth_baton_t * ab = ctx->auth_baton; + svn_auth_set_parameter(ab, SVN_AUTH_PARAM_DEFAULT_USERNAME, + username.c_str()); + svn_auth_set_parameter(ab, SVN_AUTH_PARAM_DEFAULT_PASSWORD, +@@ -654,13 +654,13 @@ public: + + Context::operator svn_client_ctx_t * () + { +- return &(m->ctx); ++ return m->ctx; + } + + svn_client_ctx_t * + Context::ctx() + { +- return &(m->ctx); ++ return m->ctx; + } + + void diff --git a/extra/libbluray/PKGBUILD b/extra/libbluray/PKGBUILD new file mode 100644 index 000000000..cad6d04c5 --- /dev/null +++ b/extra/libbluray/PKGBUILD @@ -0,0 +1,28 @@ +# $Id: PKGBUILD 144944 2011-12-11 14:37:09Z ibiru $ +# Maintainer: Ionut Biru <ibiru@archlinux.org> +# Contributor: Andrew Cook <ariscop@gmail.com> + +pkgname=libbluray +pkgver=0.2.1 +pkgrel=1 +pkgdesc="Library to access Blu-Ray disks for video playback" +arch=('i686' 'x86_64') +url="http://www.videolan.org/developers/libbluray.html" +license=('LGPL2.1') +depends=('libxml2') +options=(!libtool) +source=(ftp://ftp.videolan.org/pub/videolan/$pkgname/$pkgver/$pkgname-$pkgver.tar.bz2) +sha512sums=('b938ca838d6e4ceaac74ca8850efb9d8c312638b70a9b42ebffd63bf703341eab3ce98b6edeea9b3284ba1d0f8b46fe803db1f668e72752e1e23e96435ac77dc') + +build() { + cd "$srcdir/$pkgname-$pkgver" + ./configure --prefix=/usr --disable-static + make +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + make DESTDIR="$pkgdir/" install +} + +# vim:set ts=2 sw=2 et: diff --git a/extra/subversion/PKGBUILD b/extra/subversion/PKGBUILD index 824de1897..3a061100e 100644 --- a/extra/subversion/PKGBUILD +++ b/extra/subversion/PKGBUILD @@ -1,48 +1,35 @@ -# $Id: PKGBUILD 143824 2011-11-29 13:33:54Z stephane $ +# $Id: PKGBUILD 144954 2011-12-12 00:43:44Z eric $ # Maintainer: Paul Mattal <paul@archlinux.org> # Contributor: Jason Chu <jason@archlinux.org> pkgname=subversion -pkgver=1.6.17 -pkgrel=7 +pkgver=1.7.2 +pkgrel=1 pkgdesc="A Modern Concurrent Version Control System" arch=('i686' 'x86_64' 'mips64el') -license=('apache' 'bsd') -depends=('neon' 'apr-util' 'sqlite3') -optdepends=('libgnome-keyring' 'kdeutils-kwallet' 'bash-completion: for svn bash completion') -makedepends=('krb5' 'apache' 'python2' 'perl' 'swig' 'ruby' 'java-runtime' 'java-environment' +license=('APACHE') +depends=('neon' 'apr-util' 'sqlite3' 'file') +optdepends=('libgnome-keyring' 'kdeutils-kwallet' 'bash-completion: for svn bash completion' \ + 'python2: for some hook scripts' 'ruby: for some hook scripts') +makedepends=('krb5' 'apache' 'python2' 'perl' 'swig' 'java-runtime' 'java-environment' 'autoconf' 'db' 'e2fsprogs' 'libgnome-keyring' 'kdelibs') [ "$CARCH" = "mips64el" ] && \ makedepends=('krb5' 'apache' 'python2' 'perl' 'swig' - 'autoconf' 'sqlite3' 'db' 'e2fsprogs' 'libgnome-keyring' 'kdelibs' - 'ruby') #'java-runtime' + 'autoconf' 'db' 'e2fsprogs' 'libgnome-keyring' 'kdelibs') backup=('etc/xinetd.d/svn' 'etc/conf.d/svnserve') url="http://subversion.apache.org/" provides=('svn') options=('!makeflags' '!libtool') -source=(http://subversion.tigris.org/downloads/$pkgname-$pkgver.tar.bz2 +source=(http://apache.mirror.rafal.ca/subversion/$pkgname-$pkgver.tar.bz2{,.asc} svnserve svn svnserve.conf svnmerge.py - subversion.rpath.fix.patch - subversion.suppress.deprecation.warnings.patch - subversion-perl-bindings.patch) -md5sums=('81e5dc5beee4b3fc025ac70c0b6caa14' - 'a2b029e8385007ffb99b437b30521c90' - 'a0db6dd43af33952739b6ec089852630' - 'c459e299192552f61578f3438abf0664' - 'a6371baeda7e224504629ecdda2749b4' - '6b4340ba9d8845cd8497e013ae01be3f' - '1166f3b7413d7e7450299b3525680bbe' - '0591aa39837931161b4d61ff35c7b147') + subversion.rpath.fix.patch) build() { cd "${srcdir}/${pkgname}-${pkgver}" - export PYTHON=/usr/bin/python2 - # apply patches - patch -Np0 -i ../subversion.rpath.fix.patch - patch -Np1 -i ../subversion.suppress.deprecation.warnings.patch - patch -Np1 -i ../subversion-perl-bindings.patch + patch -p0 -i ../subversion.rpath.fix.patch + sed -i 's|/usr/bin/env python|/usr/bin/env python2|' tools/hook-scripts/{,mailer/{,tests/}}*.py # configure autoreconf @@ -58,56 +45,40 @@ build() { --enable-javahl --with-gnome-keyring --with-kwallet fi - # build - (make external-all && make LT_LDFLAGS="-L$Fdestdir/usr/lib" local-all ) + make external-all + make LT_LDFLAGS="-L$Fdestdir/usr/lib" local-all + make swig_pydir=/usr/lib/python2.7/site-packages/libsvn \ + swig_pydir_extra=/usr/lib/python2.7/site-packages/svn swig-py swig-pl javahl # swig-rb } #check() { # cd "${srcdir}/${pkgname}-${pkgver}" # export LANG=C LC_ALL=C -# make check check-swig-pl check-swig-py CLEANUP=yes +# make check check-swig-pl check-swig-py check-javahl CLEANUP=yes # check-swig-rb #} package() { cd "${srcdir}/${pkgname}-${pkgver}" - # install - export LD_LIBRARY_PATH=${pkgdir}/usr/lib:$LD_LIBRARY_PATH - make DESTDIR=${pkgdir} install - - make DESTDIR=${pkgdir} swig-py - make install-swig-py DESTDIR=${pkgdir} - - install -d ${pkgdir}/usr/lib/python2.7 - mv ${pkgdir}/usr/lib/svn-python/ ${pkgdir}/usr/lib/python2.7/site-packages + export LD_LIBRARY_PATH="${pkgdir}"/usr/lib:$LD_LIBRARY_PATH + make DESTDIR="${pkgdir}" INSTALLDIRS=vendor \ + swig_pydir=/usr/lib/python2.7/site-packages/libsvn \ + swig_pydir_extra=/usr/lib/python2.7/site-packages/svn \ + install install-swig-py install-swig-pl install-javahl # install-swig-rb - install -d ${pkgdir}/usr/share/subversion - install -d -m 755 tools/hook-scripts ${pkgdir}/usr/share/subversion/ - rm -f ${pkgdir}/usr/share/subversion/hook-scripts/*.in - - make DESTDIR=${pkgdir} swig-pl - make install-swig-pl DESTDIR=${pkgdir} INSTALLDIRS=vendor - rm -f ${pkgdir}/usr/lib/perl5/vendor_perl/auto/SVN/_Core/.packlist - rm -rf ${pkgdir}/usr/lib/perl5/core_perl - - make DESTDIR=${pkgdir} swig-rb - make install-swig-rb DESTDIR=${pkgdir} - - if [ "$CARCH" != "mips64el" ]; then - make DESTDIR=${pkgdir} javahl - make DESTDIR=${pkgdir} install-javahl - fi + install -d "${pkgdir}"/usr/share/subversion + cp -a tools/hook-scripts "${pkgdir}"/usr/share/subversion/ + rm -f "${pkgdir}"/usr/share/subversion/hook-scripts/*.in - install -d ${pkgdir}/etc/{rc.d,xinetd.d,conf.d} + rm -f "${pkgdir}"/usr/lib/perl5/vendor_perl/auto/SVN/_Core/.packlist + rm -rf "${pkgdir}"/usr/lib/perl5/core_perl - install -m 755 ${srcdir}/svnserve ${pkgdir}/etc/rc.d - install -m 644 ${srcdir}/svn ${pkgdir}/etc/xinetd.d - install -m 644 ${srcdir}/svnserve.conf ${pkgdir}/etc/conf.d/svnserve - install -m 755 ${srcdir}/svnmerge.py ${pkgdir}/usr/bin/svnmerge - install -D -m 644 ${srcdir}/subversion-$pkgver/COPYING \ - ${pkgdir}/usr/share/licenses/$pkgname/LICENSE + install -D -m 755 "${srcdir}"/svnserve "${pkgdir}"/etc/rc.d/svnserve + install -D -m 644 "${srcdir}"/svn "${pkgdir}"/etc/xinetd.d/svn + install -D -m 644 "${srcdir}"/svnserve.conf "${pkgdir}"/etc/conf.d/svnserve + install -m 755 "${srcdir}"/svnmerge.py "${pkgdir}"/usr/bin/svnmerge # bash completion - install -Dm 644 ${srcdir}/${pkgname}-${pkgver}/tools/client-side/bash_completion \ - ${pkgdir}/etc/bash_completion.d/subversion + install -Dm 644 tools/client-side/bash_completion \ + "${pkgdir}"/etc/bash_completion.d/subversion } diff --git a/~lukeshu/android-udev/51-android.rules b/~lukeshu/android-udev/51-android.rules new file mode 100644 index 000000000..c52379309 --- /dev/null +++ b/~lukeshu/android-udev/51-android.rules @@ -0,0 +1,208 @@ +# Acer +SUBSYSTEM=="usb", ATTR{idVendor}=="0502", MODE="0666", GROUP="adbusers" +# ICONIA TAB A500 +SUBSYSTEM=="usb", ATTR{idVendor}=="0502", ATTR{idProduct}=="3325", SYMLINK+="android_adb" +SUBSYSTEM=="usb", ATTR{idVendor}=="0502", ATTR{idProduct}=="3325", SYMLINK+="android_fastboot" + +# Archos +SUBSYSTEM=="usb", ATTR{idVendor}=="0e79", MODE="0666", GROUP="adbusers" +# 43 +SUBSYSTEM=="usb", ATTR{idVendor}=="0e79", ATTR{idProduct}=="1417", SYMLINK+="android_adb" +SUBSYSTEM=="usb", ATTR{idVendor}=="0e79", ATTR{idProduct}=="1417", SYMLINK+="android_fastboot" +# 101 +SUBSYSTEM=="usb", ATTR{idVendor}=="0e79", ATTR{idProduct}=="1411", SYMLINK+="android_adb" +SUBSYSTEM=="usb", ATTR{idVendor}=="0e79", ATTR{idProduct}=="1411", SYMLINK+="android_fastboot" + +# Asus +SUBSYSTEM=="usb", ATTR{idVendor}=="0b05", MODE="0666", GROUP="adbusers" + +# Blade +SUBSYSTEM=="usb", ATTR{idVendor}=="19d2", ATTR{idProduct}=="1354", SYMLINK+="android_adb" +SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="d00d", SYMLINK+="android_fastboot" + +# Dell +SUBSYSTEM=="usb", ATTR{idVendor}=="413c", MODE="0666", GROUP="adbusers" + +# Foxconn +SUBSYSTEM=="usb", ATTR{idVendor}=="0489", MODE="0666", GROUP="adbusers" + +# Garmin-Asus +SUBSYSTEM=="usb", ATTR{idVendor}=="091e", MODE="0666", GROUP="adbusers" + +# Google +SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", MODE="0666", GROUP="adbusers" +# NEXUS S +SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4e21", +SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4e22", SYMLINK+="android_adb" +SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4e20", SYMLINK+="android_fastboot" +# Nexus One +SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4e11", +SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4e12", SYMLINK+="android_adb" +SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="0fff", SYMLINK+="android_fastboot" + +# HTC +SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", MODE="0666", GROUP="adbusers" +# ChaCha +SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0cb2", SYMLINK+="android_adb" +SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0cb2", SYMLINK+="android_fastboot" +# Desire (Bravo) +SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0ff9", +SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0c87", SYMLINK+="android_adb" +SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0fff", SYMLINK+="android_fastboot" +# Desire Z +SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0c91", SYMLINK+="android_adb" +SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0c91", SYMLINK+="android_fastboot" +# Evo Shift +SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0ff9", +SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0ca5", SYMLINK+="android_adb" +SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0fff", SYMLINK+="android_fastboot" +# HD2 +SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0c02", SYMLINK+="android_adb" +SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0c02", SYMLINK+="android_fastboot" +# Hero H2000 +SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0001", SYMLINK+="android_adb" +SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0001", SYMLINK+="android_fastboot" +# Hero (GSM) +SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0ff9", +SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0c99", SYMLINK+="android_adb" +SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0fff", SYMLINK+="android_fastboot" +# Hero (CDMA) +SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0ff9", +SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0c9a", SYMLINK+="android_adb" +SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0fff", SYMLINK+="android_fastboot" +# Incredible +SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0ff9", +SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0c9e", SYMLINK+="android_adb" +SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0fff", SYMLINK+="android_fastboot" +# Incredible rev 0002 +SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0ff9", +SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0c8d", SYMLINK+="android_adb" +SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0fff", SYMLINK+="android_fastboot" +# MyTouch 4G +SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0ff9", +SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0c96", SYMLINK+="android_adb" +SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0fff", SYMLINK+="android_fastboot" +# Slide +SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0ff9", +SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0e03", SYMLINK+="android_adb" +SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0fff", SYMLINK+="android_fastboot" +# Tatoo +SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0c02", SYMLINK+="android_adb" +SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0c02", SYMLINK+="android_fastboot" +# Vision +SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0ff9", +SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0c91", SYMLINK+="android_adb" +SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0fff", SYMLINK+="android_fastboot" +# Wildfire +SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0c8b", SYMLINK+="android_adb" +SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0c8b", SYMLINK+="android_fastboot" + +# Huawei +SUBSYSTEM=="usb", ATTR{idVendor}=="12d1", MODE="0666", GROUP="adbusers" +SUBSYSTEM=="usb", ATTR{idVendor}=="12d1", ATTR{idProduct}=="1038", SYMLINK+="android_adb" +SUBSYSTEM=="usb", ATTR{idVendor}=="12d1", ATTR{idProduct}=="1038", SYMLINK+="android_fastboot" + +# K-Touch +SUBSYSTEM=="usb", ATTR{idVendor}=="24e3", MODE="0666", GROUP="adbusers" + +# KT Tech +SUBSYSTEM=="usb", ATTR{idVendor}=="2116", MODE="0666", GROUP="adbusers" + +# Kyocera +SUBSYSTEM=="usb", ATTR{idVendor}=="0482", MODE="0666", GROUP="adbusers" + +# Lab126 +SUBSYSTEM=="usb", ATTR{idVendor}=="1949", MODE="0666", GROUP="adbusers" +# Amazon Kindle Fire +SUBSYSTEM=="usb", ATTR{idVendor}=="1949", ATTR{idProduct}=="0006", SYMLINK+="android_adb" +SUBSYSTEM=="usb", ATTR{idVendor}=="1949", ATTR{idProduct}=="0006", SYMLINK+="android_fastboot" + +# Lenevo +SUBSYSTEM=="usb", ATTR{idVendor}=="17ef", MODE="0666", GROUP="adbusers" + +# LG +SUBSYSTEM=="usb", ATTR{idVendor}=="1004", MODE="0666", GROUP="adbusers" +# LG (Swift) GT540 +SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="d00d", SYMLINK+="android_fastboot" + +# Motorola +SUBSYSTEM=="usb", ATTR{idVendor}=="22b8", MODE="0666", GROUP="adbusers" +# CLIQ XT/Quench +SUBSYSTEM=="usb", ATTR{idVendor}=="22b8", ATTR{idProduct}=="2d66" +# Defy/MB525 +SUBSYSTEM=="usb", ATTR{idVendor}=="22b8", ATTR{idProduct}=="428c" +# Droid +SUBSYSTEM=="usb", ATTR{idVendor}=="22b8", ATTR{idProduct}=="41db" +# -- Xoom ID 1 +SUBSYSTEM=="usb", ATTR{idVendor}=="22b8", ATTR{idProduct}=="70a8",SYMLINK+="android_adb" +SUBSYSTEM=="usb", ATTR{idVendor}=="22b8", ATTR{idProduct}=="70a8",SYMLINK+="android_fastboot" +# -- Xoom ID 2 +SUBSYSTEM=="usb", ATTR{idVendor}=="22b8", ATTR{idProduct}=="70a9",SYMLINK+="android_adb" +SUBSYSTEM=="usb", ATTR{idVendor}=="22b8", ATTR{idProduct}=="70a9",SYMLINK+="android_fastboot" + +# NEC +SUBSYSTEM=="usb", ATTR{idVendor}=="0409", MODE="0666", GROUP="adbusers" + +# Nook +SUBSYSTEM=="usb", ATTR{idVendor}=="2080", MODE="0666", GROUP="adbusers" + +# Nvidia +SUBSYSTEM=="usb", ATTR{idVendor}=="0955", MODE="0666", GROUP="adbusers" + +# OTGV +SUBSYSTEM=="usb", ATTR{idVendor}=="2257", MODE="0666", GROUP="adbusers" + +# Pantech +SUBSYSTEM=="usb", ATTR{idVendor}=="10A9", MODE="0666", GROUP="adbusers" + +# Philips +SUBSYSTEM=="usb", ATTR{idVendor}=="0471", MODE="0666", GROUP="adbusers" + +# PMC-Sierra +SUBSYSTEM=="usb", ATTR{idVendor}=="04da", MODE="0666", GROUP="adbusers" + +# Qualcomm +SUBSYSTEM=="usb", ATTR{idVendor}=="05c6", MODE="0666", GROUP="adbusers" + +# SK Telesys +SUBSYSTEM=="usb", ATTR{idVendor}=="1f53", MODE="0666", GROUP="adbusers" + +# Samsung +SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", MODE="0666", GROUP="adbusers" +# Galaxy i5700 +SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", ATTR{idProduct}=="681c", SYMLINK+="android_adb" +SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", ATTR{idProduct}=="681c", SYMLINK+="android_fastboot" +# Galaxy i5800 +SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", ATTR{idProduct}=="681c", SYMLINK+="android_adb" +SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", ATTR{idProduct}=="6601", SYMLINK+="android_fastboot" +SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", ATTR{idProduct}=="68a9", SYMLINK+="libmtp-%k", ENV{ID_MTP_DEVICE}="1", ENV{ID_MEDIA_PLAYER}="1" +# Galaxy i7500 +SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", ATTR{idProduct}=="6640", SYMLINK+="android_adb" +SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", ATTR{idProduct}=="6640", SYMLINK+="android_fastboot" +# Galaxy S +SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", ATTR{idProduct}=="6601", SYMLINK+="android_adb" +SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", ATTR{idProduct}=="685d", MODE="0666" +SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", ATTR{idProduct}=="68c3", MODE="0666" +# Galaxy Tab +SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", ATTR{idProduct}=="6877", SYMLINK+="android_adb" +SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", ATTR{idProduct}=="6877", SYMLINK+="android_fastboot" +# Galaxy Tab 10.1 +SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", ATTR{idProduct}=="685e", SYMLINK+="android_adb" +SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", ATTR{idProduct}=="685e", SYMLINK+="android_fastboot" +SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", ATTR{idProduct}=="6860", SYMLINK+="libmtp-%k", ENV{ID_MTP_DEVICE}="1", ENV{ID_MEDIA_PLAYER}="1" + +# Sharp +SUBSYSTEM=="usb", ATTR{idVendor}=="04dd", MODE="0666", GROUP="adbusers" + +# Sony Ericsson +SUBSYSTEM=="usb", ATTR{idVendor}=="0fce", MODE="0666", GROUP="adbusers" + +# Toshiba +SUBSYSTEM=="usb", ATTR{idVendor}=="0930", MODE="0666", GROUP="adbusers" + +# ZTE +SUBSYSTEM=="usb", ATTR{idVendor}=="19d2", MODE="0666", GROUP="adbusers" +# Blade +SUBSYSTEM=="usb", ATTR{idVendor}=="19d2", ATTR{idProduct}=="1353", +SUBSYSTEM=="usb", ATTR{idVendor}=="19d2", ATTR{idProduct}=="1351", SYMLINK+="android_adb" +SUBSYSTEM=="usb", ATTR{idVendor}=="19d2", ATTR{idProduct}=="1354", SYMLINK+="android_fastboot" diff --git a/~lukeshu/android-udev/PKGBUILD b/~lukeshu/android-udev/PKGBUILD new file mode 100644 index 000000000..dabb611c9 --- /dev/null +++ b/~lukeshu/android-udev/PKGBUILD @@ -0,0 +1,22 @@ +# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net> +# Maintainer: M0Rf30 (AUR) +# Contributor: marlock + +pkgname=android-udev +pkgver=0.7 +pkgrel=3.1 +pkgdesc='Udev rules to for Android devices.' +arch=('any') +url="http://developer.android.com/guide/developing/device.html" +license=('unknown') +source=('51-android.rules') +depends=('udev' 'libmtp') +conflicts=('udev-android-rules') +install='android-udev.install' + +package() { + install -d $pkgdir/etc/udev/rules.d + install -m644 $srcdir/51-android.rules $pkgdir/etc/udev/rules.d/51-android.rules +} + +md5sums=('bfcd8d0e4c5bdeed0973e102a656e1eb') diff --git a/~lukeshu/android-udev/android-udev.install b/~lukeshu/android-udev/android-udev.install new file mode 100644 index 000000000..c861f2b70 --- /dev/null +++ b/~lukeshu/android-udev/android-udev.install @@ -0,0 +1,15 @@ +post_install() { +getent group adbusers >> /dev/null || /usr/sbin/groupadd adbusers || return 1 +/bin/cat << EOF +===> In order to use adb, you have to be in the 'adbusers' group +===> For that, use: gpasswd -a USERNAME adbusers +EOF +} + +post_upgrade() { +post_install +} + +post_remove() { +getent group adbusers &>/dev/null && /usr/sbin/groupdel adbusers +} diff --git a/~lukeshu/cinclude2dot/PKGBUILD b/~lukeshu/cinclude2dot/PKGBUILD new file mode 100644 index 000000000..2eb43bac2 --- /dev/null +++ b/~lukeshu/cinclude2dot/PKGBUILD @@ -0,0 +1,27 @@ +# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net> + +pkgname=cinclude2dot +pkgver=1.1 +pkgrel=1 +pkgdesc="A Perl script which analyses C/C++ code and produces a #include dependency graph." +arch=('any') +url="http://flourish.org/cinclude2dot/" +license=('GPL') +depends=('perl') +source=('http://flourish.org/cinclude2dot/cinclude2dot' + 'http://flourish.org/cinclude2dot/cinclude2dot.1') + +build() { + gzip -c cinclude2dot.1 > cinclude2dot.1.gz +} + +package() { + cd "$srcdir" + install -d "$pkgdir/usr/bin" + install -m755 cinclude2dot "$pkgdir/usr/bin" + install -d "$pkgdir/usr/share/man/man1" + install -m644 cinclude2dot.1.gz "$pkgdir/usr/share/man/man1" +} + +md5sums=('372ca2cba1170ae4e040f7f84b7b98b5' + 'bfdc230a26db0c66b238e6380e6badbe') diff --git a/~lukeshu/dasm/PKGBUILD b/~lukeshu/dasm/PKGBUILD new file mode 100644 index 000000000..79a7264b4 --- /dev/null +++ b/~lukeshu/dasm/PKGBUILD @@ -0,0 +1,31 @@ +# Maintainer: Max Pray a.k.a. Synthead <synthead@gmail.com> + +pkgname=dasm +pkgver=2.20.11 +pkgrel=3 +pkgdesc="An assembler for the 6502, 68HC11, 68705, 6803, HD6303, F8 and 6507 microprocessors" +arch=('i686' 'x86_64') +url="http://www.atari2600.org/DASM" +license=('GPL') +source=("http://downloads.sourceforge.net/project/$pkgname-dillon/$pkgname-dillon/$pkgver/$pkgname-$pkgver.tar.gz") +md5sums=('3e67f7b8ac80419d53cc0aaa9a47ab37') + +build() { + cd "$srcdir/$pkgname-$pkgver" + make +} + +package() { + install -Dm 755 "$srcdir/$pkgname-$pkgver/bin/dasm" "$pkgdir/usr/bin/dasm" + install -Dm 755 "$srcdir/$pkgname-$pkgver/bin/ftohex" "$pkgdir/usr/bin/ftohex" + + for doc in AUTHORS ChangeLog COPYING CREDITS FUTURE NEWS README README.ANDREW "doc/dasm.txt" "doc/ftohex.txt"; do + install -Dm 644 "$srcdir/$pkgname-$pkgver/$doc" "$pkgdir/usr/share/doc/dasm/${doc/*\/}" + done + + mkdir -p "$pkgdir/usr/share/dasm" + cp -R "$srcdir/$pkgname-$pkgver"/{machines,test} "$pkgdir/usr/share/dasm" + + chmod 755 "$pkgdir/usr/share"/{dasm,dasm/machines,dasm/machines/atari2600,dasm/machines/channel-f,dasm/test} + chmod 644 "$pkgdir/usr/share/dasm"/{machines/atari2600,machines/channel-f,test}/* +} diff --git a/~lukeshu/kdeutils-ark-unarchiver/PKGBUILD b/~lukeshu/kdeutils-ark-unarchiver/PKGBUILD new file mode 100644 index 000000000..b016b15bf --- /dev/null +++ b/~lukeshu/kdeutils-ark-unarchiver/PKGBUILD @@ -0,0 +1,184 @@ +# $Id: PKGBUILD 141878 2011-11-02 18:15:53Z andrea $ +# Maintainer: Andrea Scarpino <andrea@archlinux.org> +# Contributor: Pierre Schmitz <pierre@archlinux.de> + +pkgbase=kdeutils +pkgname='kdeutils-ark-unarchiver' +pkgver=4.7.3 +pkgrel=2 +arch=('i686' 'x86_64') +url='http://www.kde.org' +license=('GPL' 'LGPL' 'FDL') +groups=('kde' 'kdeutils') +makedepends=('pkgconfig' 'cmake' 'automoc4' 'kdebase-lib' 'kdebase-workspace' + 'kdebindings-python' 'system-config-printer-common' 'libarchive' 'qimageblitz' + 'qjson') +source=("http://download.kde.org/stable/${pkgver}/src/${pkgbase}-${pkgver}.tar.bz2" + 'add-ark-cliunarchiverplugin.patch') +sha1sums=('23fc9823647152d5d8cc250a55402c8930db4059' + '134c0ff9be6ffccd896bd590182c21d117f07991') + +build() { + cd "${srcdir}"/${pkgbase}-${pkgver} + + patch -p0 -i "${srcdir}"/add-ark-cliunarchiverplugin.patch + + # Use Python2 + sed -i 's|/usr/bin/python|/usr/bin/python2|' \ + kcharselect/kcharselect-generate-datafile.py \ + superkaramba/examples/richtext/rtext.py + sed -i 's|/usr/bin/env python|/usr/bin/env python2|' \ + printer-applet/{authconn,debug,monitor,printer-applet,statereason}.py + + cd "${srcdir}" + mkdir build + cd build + cmake ../${pkgbase}-${pkgver} \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_SKIP_RPATH=ON \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DPYTHON_EXECUTABLE=/usr/bin/python2 + make +} + +package_kdeutils-ark-unarchiver() { + pkgdesc='Archiving Tool' + depends=('kdebase-runtime' 'kdebase-lib' 'libarchive') + optdepends=('p7zip' 'zip' 'unzip' 'unrar' 'unarchiver') + provides=('kdeutils-ark') + url="http://kde.org/applications/utilities/ark/" + cd $srcdir/build/ark + make DESTDIR=$pkgdir install + cd $srcdir/build/ark/doc + make DESTDIR=$pkgdir install +} + +package_kdeutils-filelight() { + pkgdesc='View disk usage information' + depends=('kdebase-runtime' 'qimageblitz') + replaces=('filelight') + conflicts=('filelight') + install='kdeutils.install' + url="http://methylblue.com/filelight/" + cd $srcdir/build/filelight + make DESTDIR=$pkgdir install + cd $srcdir/build/filelight/doc + make DESTDIR=$pkgdir install +} + +package_kdeutils-kcalc() { + pkgdesc='Scientific Calculator' + depends=('kdebase-runtime') + url="http://kde.org/applications/utilities/kcalc/" + cd $srcdir/build/kcalc + make DESTDIR=$pkgdir install + cd $srcdir/build/kcalc/doc + make DESTDIR=$pkgdir install +} + +package_kdeutils-kcharselect() { + pkgdesc='Character Selector' + depends=('kdebase-runtime') + url="http://kde.org/applications/utilities/kcharselect/" + cd $srcdir/build/kcharselect + make DESTDIR=$pkgdir install + cd $srcdir/build/kcharselect/doc + make DESTDIR=$pkgdir install +} + +package_kdeutils-kdf() { + pkgdesc='View Disk Usage' + depends=('kdebase-runtime') + url="http://kde.org/applications/system/kdiskfree/" + install='kdeutils.install' + cd $srcdir/build/kdf + make DESTDIR=$pkgdir install + cd $srcdir/build/kdf/doc + make DESTDIR=$pkgdir install +} + +package_kdeutils-kfloppy() { + pkgdesc='Floppy Formatter' + depends=('kdebase-runtime') + url="http://kde.org/applications/utilities/kfloppy/" + install='kdeutils.install' + cd $srcdir/build/kfloppy + make DESTDIR=$pkgdir install + cd $srcdir/build/kfloppy/doc + make DESTDIR=$pkgdir install +} + +package_kdeutils-kgpg() { + pkgdesc='A GnuPG frontend' + depends=('kdepim-runtime' 'kde-agent') + url="http://kde.org/applications/utilities/kgpg" + install='kdeutils.install' + cd $srcdir/build/kgpg + make DESTDIR=$pkgdir install + cd $srcdir/build/kgpg/doc + make DESTDIR=$pkgdir install +} + +package_kdeutils-kremotecontrol() { + pkgdesc='Configure your remote controls for use with applications' + replaces=('kdeutils-kdelirc') + conflicts=('kdeutils-kdelirc') + depends=('kdebase-workspace') + url="http://kde.org/applications/utilities/kremotecontrol" + install='kdeutils.install' + cd $srcdir/build/kremotecontrol + make DESTDIR=$pkgdir install + cd $srcdir/build/kremotecontrol/doc + make DESTDIR=$pkgdir install +} + +package_kdeutils-ktimer() { + pkgdesc='Countdown Launcher' + depends=('kdebase-runtime') + url="http://kde.org/applications/utilities/ktimer" + install='kdeutils.install' + cd $srcdir/build/ktimer + make DESTDIR=$pkgdir install + cd $srcdir/build/ktimer/doc + make DESTDIR=$pkgdir install +} + +package_kdeutils-kwallet() { + pkgdesc='Wallet Management Tool' + depends=('kdebase-runtime') + url="http://kde.org/applications/system/kwalletmanager/" + install='kdeutils.install' + cd $srcdir/build/kwallet + make DESTDIR=$pkgdir install + cd $srcdir/build/kwallet/doc + make DESTDIR=$pkgdir install +} + +package_kdeutils-printer-applet() { + pkgdesc='System tray icon for managing print jobs' + depends=('kdebase-runtime' 'kdebindings-python' 'system-config-printer-common') + url="http://kde.org/applications/system/printerapplet/" + cd $srcdir/build/printer-applet + make DESTDIR=$pkgdir install + cd $srcdir/build/printer-applet/doc + make DESTDIR=$pkgdir install +} + +package_kdeutils-superkaramba() { + pkgdesc='An engine for cool desktop eyecandy' + depends=('kdebase-runtime' 'kdebindings-python' 'qimageblitz') + url="http://kde.org/applications/utilities/superkaramba" + install='kdeutils.install' + cd $srcdir/build/superkaramba + make DESTDIR=$pkgdir install +} + +package_kdeutils-sweeper() { + pkgdesc='System Cleaner' + depends=('kdebase-runtime') + url="http://kde.org/applications/utilities/sweeper/" + cd $srcdir/build/sweeper + make DESTDIR=$pkgdir install + cd $srcdir/build/sweeper/doc + make DESTDIR=$pkgdir install +} diff --git a/~lukeshu/kdeutils-ark-unarchiver/add-ark-cliunarchiverplugin.patch b/~lukeshu/kdeutils-ark-unarchiver/add-ark-cliunarchiverplugin.patch new file mode 100644 index 000000000..039d725b4 --- /dev/null +++ b/~lukeshu/kdeutils-ark-unarchiver/add-ark-cliunarchiverplugin.patch @@ -0,0 +1,235 @@ +Index: ark/plugins/CMakeLists.txt +=================================================================== +--- ark/plugins/CMakeLists.txt (revision 1237729) ++++ ark/plugins/CMakeLists.txt (working copy) +@@ -14,6 +14,7 @@ + endif (LIBARCHIVE_FOUND) + + add_subdirectory( clirarplugin ) ++add_subdirectory( cliunarchiverplugin ) + add_subdirectory( cli7zplugin ) + add_subdirectory( clizipplugin ) + add_subdirectory( libsinglefileplugin ) +Index: ark/plugins/cliunarchiverplugin/kerfuffle_cliunarchiver.desktop +=================================================================== +--- ark/plugins/cliunarchiverplugin/kerfuffle_cliunarchiver.desktop (revision 0) ++++ ark/plugins/cliunarchiverplugin/kerfuffle_cliunarchiver.desktop (revision 0) +@@ -0,0 +1,15 @@ ++[Desktop Entry] ++Type=Service ++X-KDE-ServiceTypes=Kerfuffle/Plugin ++X-KDE-Library=kerfuffle_cliunarchiver ++X-KDE-PluginInfo-Author=Luke Shumaker ++X-KDE-PluginInfo-Email=lukeshu@sbcglobal.net ++X-KDE-PluginInfo-Name= kerfuffle_cliunarchiver ++X-KDE-PluginInfo-Version=0.0.1 ++X-KDE-PluginInfo-Website=http://www.kde.org ++X-KDE-PluginInfo-License=GPLv2+ ++X-KDE-Priority=150 ++X-KDE-Kerfuffle-APIRevision=1 ++X-KDE-Kerfuffle-ReadWrite=true ++Name=The Unarchiver plugin ++MimeType=application/x-rar; +Index: ark/plugins/cliunarchiverplugin/cliplugin.cpp +=================================================================== +--- ark/plugins/cliunarchiverplugin/cliplugin.cpp (revision 0) ++++ ark/plugins/cliunarchiverplugin/cliplugin.cpp (revision 0) +@@ -0,0 +1,172 @@ ++/* ++ * ark -- archiver for the KDE project ++ * ++ * Copyright (C) 2011 Luke Shumaker <lukeshu@sbcglobal.net> ++ * ++ * This program is free software; you can redistribute it and/or ++ * modify it under the terms of the GNU General Public License ++ * as published by the Free Software Foundation; either version 2 ++ * of the License, or (at your option) any later version. ++ * ++ * This program is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ * GNU General Public License for more details. ++ * ++ * You should have received a copy of the GNU General Public License ++ * along with this program; if not, write to the Free Software ++ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. ++ * ++ */ ++ ++#include "kerfuffle/cliinterface.h" ++#include "kerfuffle/kerfuffle_export.h" ++ ++#include <KDebug> ++ ++#include <QDateTime> ++#include <QDir> ++#include <QRegExp> ++#include <QString> ++#include <QStringList> ++ ++using namespace Kerfuffle; ++ ++class CliPlugin: public CliInterface ++{ ++public: ++ explicit CliPlugin(QObject *parent, const QVariantList & args) ++ : CliInterface(parent, args) { ++ m_indentLevel = 0; ++ } ++ ++ virtual ~CliPlugin() { ++ } ++ ++ virtual ParameterList parameterList() const { ++ static ParameterList p; ++ if (p.isEmpty()) { ++ /* As I'm writing this, I'm noticing that unar is quite limited. ++ * The following limitations are used to tag unused bits of code: ++ * 01 - cannot extract just one file from the archive ++ * 02 - overwrites existing files without prompt ++ * 03 - cannot edit archives ++ * 04 - if a wrong password is given, it fails (usually segfaults) ++ * without telling what went wrong ++ */ ++ ++ ///////////////[ COMMON ]///////////// ++ ++ p[CaptureProgress] = false; ++ //p[PasswordPromptPattern] = ++ ++ ///////////////[ LIST ]///////////// ++ ++ p[ListProgram] = "lsar"; ++ p[ListArgs] = QStringList() << "-json" << "$Archive"; ++ ++ ///////////////[ EXTRACT ]///////////// ++ ++ p[ExtractProgram] = "unar"; ++ p[ExtractArgs] = QStringList() << "$PasswordSwitch" << "$Archive"; ++ //p[NoTrailingSlashes] = // limitation: 01 ++ //p[PreservePathSwitch] = // limitation: 01 ++ //p[NoTrailingSlashes] = // limitation: 01 ++ //p[RootNodeSwitch] = // limitation: 01 ++ p[PasswordSwitch] = QStringList() << "-p $Password"; ++ p[FileExistsExpression] = "some regexp that nothing will ever _ever_ match"; // limitation: 02 ++ //p[FileExistsMode] = // limitation: 02 ++ //p[FileExistsInput] = // limitation: 02 ++ ++ ///////////////[ DELETE ]///////////// ++ ++ p[DeleteProgram] = "x-fakeprogram"; // limitation: 03 ++ //p[DeleteArgs] = // limitation: 03 ++ ++ ///////////////[ ADD ]///////////// ++ ++ p[AddProgram] = "x-fakeprogram"; // limitation: 03 ++ //p[AddArgs] = // limitation: 03 ++ ++ ///////////////[ ERRORS ]///////////// ++ ++ p[ExtractionFailedPatterns] = QStringList() ++ << "Failed! \\((.+)\\)$" ++ << "Segmentation fault$"; // Why is this so common!? ++ ++ p[WrongPasswordPatterns] = QStringList() ++ //<< "Failed!" // limitation: 04 ++ << "\\.\\.\\. This archive requires a password to unpack\\. Use the -p option to provide one\\.$"; ++ } ++ return p; ++ } ++ ++ QString m_entryFilename, m_internalId; ++ ArchiveEntry m_currentEntry; ++ int m_indentLevel; ++ ++ bool readListLine(const QString &line) { ++ /* lsar will give us JSON output. However, we actually parse based on ++ * the indentation. Ugly, I know, but ++ * 1. It's easier ++ * 2. lsar's JSON is invalid JSON, so actual parsers bork. ++ */ ++ ++ int spaces; ++ for(spaces=0;(spaces<line.size())&&(line[spaces]==QChar(' '));spaces++){} ++ // Since this is so ugly anyway, I'm not even going to check to ++ // make sure that spaces is even. I mean, what would I do about it? ++ int m_newIndentLevel = spaces/2; ++ ++ if (m_newIndentLevel>m_indentLevel) { ++ if (m_newIndentLevel==3) { ++ m_currentEntry.clear(); ++ m_currentEntry[IsDirectory] = false; ++ } ++ } else if (m_newIndentLevel<m_indentLevel) { ++ if ( (m_newIndentLevel<3) && (m_indentLevel>=3) ) { ++ EntryMetaDataType index = IsDirectory; ++ if (m_currentEntry[index].toBool()) { ++ m_currentEntry[FileName].toString().append(QString("/")); ++ } ++ kDebug() << "Added entry:" << m_currentEntry; ++ entry(m_currentEntry); ++ } ++ } ++ m_indentLevel = m_newIndentLevel; ++ ++ QRegExp rx("^\\s*\"([^\"]*)\": (.*),$"); ++ if (rx.indexIn(line) >= 0) { ++ QRegExp rx_unquote("^\"(.*)\"$"); ++ QString key = rx.cap(1); ++ QString value = rx.cap(2); ++ ++ if (false) { ++ } else if (key=="XADFileName") { ++ rx_unquote.indexIn(value); ++ m_currentEntry[FileName] = m_currentEntry[InternalID] = rx_unquote.cap(1); ++ } else if (key=="XADFileSize") { ++ m_currentEntry[Size] = value.toInt(); ++ } else if (key=="XADCompressedSize") { ++ m_currentEntry[CompressedSize] = value.toInt(); ++ } else if (key=="XADLastModificationDate") { ++ QDateTime ts(QDate::fromString(value, "\"YYYY-MM-DD hh:mm:ss")); ++ m_currentEntry[Timestamp] = ts; ++ } else if (key=="XADIsDirectory") { ++ m_currentEntry[IsDirectory] = (value=="1"); ++ } else if (key=="RARCRC32") { ++ m_currentEntry[CRC] = value.toInt(); ++ } else if (key=="RARCompressionMethod") { ++ m_currentEntry[Method] = value.toInt(); ++ } else if (key=="Encrypted") { ++ m_currentEntry[IsPasswordProtected] = (value.toInt() != 0); ++ } ++ // TODO: add RAR version. ([Version]) ++ } ++ ++ return true; ++ } ++}; ++ ++KERFUFFLE_EXPORT_PLUGIN(CliPlugin) ++ +Index: ark/plugins/cliunarchiverplugin/CMakeLists.txt +=================================================================== +--- ark/plugins/cliunarchiverplugin/CMakeLists.txt (revision 0) ++++ ark/plugins/cliunarchiverplugin/CMakeLists.txt (revision 0) +@@ -0,0 +1,21 @@ ++ ++include_directories( ++ ${CMAKE_CURRENT_SOURCE_DIR}/../.. ++ ${CMAKE_CURRENT_BINARY_DIR}/../.. ++ ) ++ ++########### next target ############### ++ ++set(kerfuffle_cliunarchiver_SRCS cliplugin.cpp) ++ ++kde4_add_plugin(kerfuffle_cliunarchiver ${kerfuffle_cliunarchiver_SRCS}) ++ ++target_link_libraries(kerfuffle_cliunarchiver ${KDE4_KDECORE_LIBS} ${KDE4_KIO_LIBS} kerfuffle ) ++ ++ ++ ++########### install files ############### ++ ++install(TARGETS kerfuffle_cliunarchiver DESTINATION ${PLUGIN_INSTALL_DIR} ) ++install( FILES kerfuffle_cliunarchiver.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) ++ diff --git a/~lukeshu/kdeutils-ark-unarchiver/kdeutils.install b/~lukeshu/kdeutils-ark-unarchiver/kdeutils.install new file mode 100644 index 000000000..e70c054ec --- /dev/null +++ b/~lukeshu/kdeutils-ark-unarchiver/kdeutils.install @@ -0,0 +1,11 @@ +post_install() { + xdg-icon-resource forceupdate --theme hicolor &> /dev/null +} + +post_upgrade() { + post_install +} + +post_remove() { + post_install +} diff --git a/~lukeshu/libfreenect-git/PKGBUILD b/~lukeshu/libfreenect-git/PKGBUILD new file mode 100644 index 000000000..edc9e7483 --- /dev/null +++ b/~lukeshu/libfreenect-git/PKGBUILD @@ -0,0 +1,86 @@ +# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net> +# Contributor: Sven Schneider <archlinux.sandmann@googlemail.com> + +# I am not giving libfreenect nearly the attention it deserves. +# There are a lot of options for it that I'm ignoring. +# Right now I'm focussing more on sensorkinect. +# Patches welcome! + +pkgname=("libfreenect-git" 'kinect-udev-git') +pkgver=20111211 +pkgrel=1 +pkgdesc="OpenKinect drivers and libraries for the Xbox Kinect device" +arch=('i686' 'x86_64') +url="http://openkinect.org" +license=('GPL') +makedepends=('cmake' 'git' 'python2') +source=() +md5sums=() + +_gitroot="git://github.com/OpenKinect/libfreenect.git" +_gitname=libfreenect + +build() { + cd "$srcdir" + msg "Connecting to GIT server...." + + if [[ -d "$_gitname" ]]; then + cd "$_gitname" && git pull origin + msg "The local files are updated." + else + git clone "$_gitroot" "$_gitname" + fi + + msg "GIT checkout done or server timeout" + msg "Starting build..." + + rm -rf "$srcdir/$_gitname-build" + git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build" + cd "$srcdir/$_gitname-build" + + # + # BUILD HERE + # + + # Install "libfreenect.hpp" to "/usr/include/libfreenect" + sed 's/DESTINATION include/DESTINATION include\/${projectNameLower}/g' -i "wrappers/cpp/CMakeLists.txt" + + export DYLD_FRAMEWORK_PATH=/usr/lib/python2.7/site-packages + + mkdir build + cd build + cmake \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DBUILD_REDIST_PACKAGE=ON \ + -DLIB_SUFFIX="" \ + -DBUILD_AUDIO=OFF \ + -DBUILD_PYTHON=OFF \ + -DPYTHON_EXECUTABLE="`which python2`" \ + .. + make +} + +package_libfreenect-git() { + depends=('libusb' 'freeglut' 'libxmu' 'kinect-udev') + provides=(libfreenect) + conflicts=(libfreenect) + + # Make install + cd "${srcdir}/${_gitname}-build/build" + make DESTDIR="${pkgdir}" install + + # Patch include files + sed 's/<libfreenect.h>/<libfreenect\/libfreenect.h>/g' -i "${pkgdir}/usr/include/libfreenect/libfreenect.hpp" +} + +package_kinect-udev-git() { + pkgdesc="Udev rules for the Xbox Kinect device" + depends=('udev') + provides=(kinect-udev) + conflicts=(kinect-udev) + + # Install udev rules + cd "${srcdir}/${_gitname}-build/" + install -d "${pkgdir}/etc/udev/rules.d" + install -m644 platform/linux/udev/51-kinect.rules "${pkgdir}/etc/udev/rules.d" +}
\ No newline at end of file diff --git a/~lukeshu/openni-git/PKGBUILD b/~lukeshu/openni-git/PKGBUILD new file mode 100644 index 000000000..7ac6abb87 --- /dev/null +++ b/~lukeshu/openni-git/PKGBUILD @@ -0,0 +1,286 @@ +# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net> +# Contributor: Sven Schneider <archlinux.sandmann@googlemail.com> +# Contributor: bugix +# Contributor: Lubosz Sarnecki <lubosz at gmail> + +# unfortunately we can't use $_suf in function names, but sed makes it ok +_suf='-git' +pkgname=( + openni$_suf + openni$_suf-docs + + openni$_suf-core + openni$_suf-core-samples + openni$_suf-core-samples-source + + openni$_suf-mono + openni$_suf-mono-samples + openni$_suf-mono-samples-source + + openni$_suf-java + openni$_suf-java-samples + openni$_suf-java-samples-source + ) +pkgver=20111121 +pkgrel=4 +arch=('i686' 'x86_64') +url="http://www.openni.org/" +license=('GPL') +makedepends=('git' 'doxygen' 'graphviz') +source=() +md5sums=() + +_gitroot="git://github.com/OpenNI/OpenNI.git" +_gitname="openni" +#_gitbranch="unstable" +_gitbranch="master" + +_os='Linux' +case "${CARCH}" in +'x86_64') _arch=x86;; +'i686') _arch=x86;; +'arm') _arch=Arm;; # untested +*) _arch=UNSUPPORTED_ARCH;; +esac +_platform="${_os}-${_arch}" + +export MAKEFLAGS+=' -j1 ' + +build() { + cd "${srcdir}" + msg "Connecting to GIT server...." + + if [ -d ${_gitname} ] ; then + cd ${_gitname} + git checkout master + git pull origin + msg "The local files are updated." + else + git clone ${_gitroot} ${_gitname} + cd ${_gitname} + fi + git checkout ${_gitbranch} + cd .. + + msg "GIT checkout done or server timeout" + msg "Starting make..." + + rm -rf "${srcdir}/${_gitname}-build" + git clone "${srcdir}/${_gitname}" "${srcdir}/${_gitname}-build" + cd "${srcdir}/${_gitname}-build" + + # PATCH + sed -i 's/python /python2 /' "Platform/${_platform}/CreateRedist/RedistMaker" + echo ' +abs_core: $(ALL_MODULES) $(ALL_UTILS) +abs_core_samples: $(CORE_SAMPLES) +abs_java: $(ALL_JAVA_PROJS) +abs_java_samples: $(JAVA_SAMPLES) +abs_mono: $(ALL_MONO_PROJS) +abs_mono_samples: $(MONO_SAMPLES) $(MONO_FORMS_SAMPLES) +' >> "Platform/${_platform}/Build/Makefile" + + + # BUILD + cd "Platform/${_platform}/Build" + make -j1 \ + abs_core abs_core_samples \ + abs_java abs_java_samples \ + abs_mono abs_mono_samples || return 1 + + cd '../../../Source/DoxyGen' + mkdir html + doxygen Doxyfile + rm -rf html/*.map html*.md5 html/*.hhc html/*.hhp +} + +package_openni-git() { + pkgdesc="Open Natural Interface framework" + depends=("openni$_suf-core") + optdepends=("openni$_suf-docs: programmer documentation") + provides=('openni') + conflicts=('openni') +} + +package_openni-git-docs() { + pkgdesc="OpenNI programmer documentation" + arch=('any') + provides=('openni-docs') + conflicts=('openni-docs') + + cd "${srcdir}/${_gitname}-build/Source/DoxyGen/" + install -d "${pkgdir}/usr/share/openni" + cp -r html "${pkgdir}/usr/share/openni" +} + +package_openni-git-core() { + pkgdesc="OpenNI core libraries" + depends=('libusb' 'freeglut') + install="openni.install" + provides=('openni-core') + conflicts=('openni-core') + + cd "${srcdir}/${_gitname}-build/Platform/${_platform}/Bin/Release" + + LIB_FILES=' + libnimCodecs.so + libnimMockNodes.so + libnimRecorder.so + libOpenNI.so + ' + install -d "${pkgdir}/usr/lib" + install -m755 $LIB_FILES "${pkgdir}/usr/lib" + + BIN_FILES='niReg niLicense' + install -d "${pkgdir}/usr/bin" + install -m755 $BIN_FILES "${pkgdir}/usr/bin" + + cd "${srcdir}/${_gitname}-build/Include" + install -d "${pkgdir}/usr/include/ni" + install -m644 *.h "${pkgdir}/usr/include/ni" + cp -r "${_platform}" "${pkgdir}/usr/include/ni" + + cd "${srcdir}/${_gitname}-build/Platform/${_platform}/Build" + install -d "${pkgdir}/usr/share" + cp -r Common "${pkgdir}/usr/share/common" +} + +package_openni-git-java() { + pkgdesc="OpenNI java wrapper" + depends=("openni$_suf" 'java-environment') + provides=('openni-java') + conflicts=('openni-java') + + cd "${srcdir}/${_gitname}-build/Platform/${_platform}/Bin/Release" + + install -d "${pkgdir}/usr/lib" + install -m755 libOpenNI.jni.so "${pkgdir}/usr/lib" + + install -d "${pkgdir}/usr/share/openni/java" + install -m755 org.OpenNI.jar "${pkgdir}/usr/share/openni/java" +} + +package_openni-git-mono() { + pkgdesc="OpenNI mono wrapper" + depends=("openni$_suf" 'mono') + provides=('openni-mono') + conflicts=('openni-mono') + + cd "${srcdir}/${_gitname}-build/Platform/${_platform}/Bin/Release" + + install -d "${pkgdir}/usr/share/openni/mono" + install -m755 OpenNI.net.dll "${pkgdir}/usr/share/openni/mono" +} + +# SAMPLES + +_install_sample_source() { + sample=$1 + makefile="Platform/${_platform}/Build/Samples/$sample/Makefile" + install -d "${pkgdir}/usr/share/openni/samples" + cp -r "Samples/$sample" "${pkgdir}/usr/share/openni/samples/$sample" + install -m644 "$makefile" "${pkgdir}/usr/share/openni/samples/$sample" +} + +# Leave out NiViewer, it's set up wrong +CORE_SAMPLES=' + AudioSample + BackRecorder + CRead + ConvertXToONI + RecordSynthetic + SimpleCreate + SimpleRead SimpleViewer UserTracker' +MONO_SAMPLES='SimpleRead SimpleViewer UserTracker' +JAVA_SAMPLES='SimpleRead SimpleViewer UserTracker' + +package_openni-git-core-samples() { + pkgdesc="OpenNI sample programs" + depends=("openni$_suf-core") + optdepends=('openni-core-samples-source: source code for the samples') + provides=('openni-core-samples') + conflicts=('openni-core-samples') + + cd "${srcdir}/${_gitname}-build/Platform/${_platform}/Bin/Release" + install -d "${pkgdir}/usr/bin" + install -m755 NiViewer "${pkgdir}/usr/bin/niSample-Viewer" + for sample in $CORE_SAMPLES; do + install -m766 Sample-Ni$sample "${pkgdir}/usr/bin/niSample-$sample" + done +} +package_openni-git-core-samples-source() { + pkgdesc="OpenNI sample programs source code" + depends=("openni$_suf-core") + provides=('openni-core-samples-source') + conflicts=('openni-core-samples-source') + options+=('!strip') + + cd "${srcdir}/${_gitname}-build" + for sample in Viewer $CORE_SAMPLES; do + _install_sample_source Ni$sample + done +} + +package_openni-git-java-samples() { + pkgdesc="OpenNI java wrapper sample programs" + depends=("openni$_suf-java") + optdepends=("openni$_suf-java-samples-source: source code for the samples") + arch=('any') + provides=('openni-java-samples') + conflicts=('openni-java-samples') + + cd "${srcdir}/${_gitname}-build/Platform/${_platform}/Bin/Release" + install -d "${pkgdir}/usr/bin" + install -d "${pkgdir}/usr/share/openni/java" + for sample in $JAVA_SAMPLES; do + install -m644 org.OpenNI.Samples.$sample.jar "${pkgdir}/usr/share/openni/java" + echo "#/bin/sh +java -jar /usr/share/openni/java/org.OpenNI.Samples.$sample.jar $@ +" > "${pkgdir}/usr/bin/niSample-$sample.jar" + chmod 755 "${pkgdir}/usr/bin/niSample-$sample.jar" + done +} +package_openni-git-java-samples-source() { + pkgdesc="OpenNI java wrapper sample programs source code" + depends=("openni$_suf-java") + provides=('openni-java-samples-source') + conflicts=('openni-java-samples-source') + options+=('!strip') + + cd "${srcdir}/${_gitname}-build" + for sample in $JAVA_SAMPLES; do + _install_sample_source $sample.java + done +} + +package_openni-git-mono-samples() { + pkgdesc="OpenNI java wrapper sample programs" + depends=("openni$_suf-mono") + optdepends=("openni$_suf-mono-samples-source: source code for the samples") + provides=('openni-mono-samples') + conflicts=('openni-mono-samples') + + cd "${srcdir}/${_gitname}-build/Platform/${_platform}/Bin/Release" + install -d "${pkgdir}/usr/bin" + install -d "${pkgdir}/usr/share/openni/mono" + for sample in $MONO_SAMPLES; do + install -m755 $sample.net.exe "${pkgdir}/usr/share/openni/mono" + echo "#/bin/sh +cd /usr/share/openni/mono +mono $sample.net.exe $@ +" > "${pkgdir}/usr/bin/niSample-$sample.net" + chmod 755 "${pkgdir}/usr/bin/niSample-$sample.net" + done +} +package_openni-git-mono-samples-source() { + pkgdesc="OpenNI mono wrapper sample programs source code" + depends=("openni$_suf-mono") + provides=('openni-mono-samples-source') + conflicts=('openni-mono-samples-source') + options+=('!strip') + + cd "${srcdir}/${_gitname}-build" + for sample in $MONO_SAMPLES; do + _install_sample_source $sample.net + done +} diff --git a/~lukeshu/openni-git/openni.install b/~lukeshu/openni-git/openni.install new file mode 100644 index 000000000..8470f4512 --- /dev/null +++ b/~lukeshu/openni-git/openni.install @@ -0,0 +1,11 @@ +post_install() { + MODULES="libnimMockNodes.so libnimCodecs.so libnimRecorder.so" + for module in $MODULES + do + /usr/bin/niReg /usr/lib/$module + done +} + +pre_remove() { + rm /var/lib/ni/modules.xml +} diff --git a/~lukeshu/openni-module-primesensor-git/PKGBUILD b/~lukeshu/openni-module-primesensor-git/PKGBUILD new file mode 100644 index 000000000..0ebfac2e5 --- /dev/null +++ b/~lukeshu/openni-module-primesensor-git/PKGBUILD @@ -0,0 +1,65 @@ +# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net> +# Contributor: pallegro from the AUR + +_pkgname=openni-module-primesensor +pkgname=${_pkgname}-git +pkgver=20111115 +pkgrel=1 +pkgdesc="OpenNI PrimeSensor harware modules for the PrimeSense sensor device" +arch=('i686') +url="http://www.primesense.com/" +license=('GPL') +depends=('openni') +makedepends=('git') +provides=($_pkgname) +conflicts=($_pkgname) +install="sensorkinect.install" +source=() +md5sums=() + +_gitroot="https://github.com/PrimeSense/Sensor.git" +_gitname="primesensor" +_gitbranch="unstable" +#_gitbranch="master" + +build() { + cd "$srcdir" + msg "Connecting to GIT server...." + + if [ -d $_gitname ] ; then + cd $_gitname && git pull origin + msg "The local files are updated." + else + git clone -b $_gitbranch $_gitroot $_gitname + fi + + msg "GIT checkout done or server timeout" + msg "Starting make..." + + rm -rf "$srcdir/$_gitname-build" + git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build" + cd $srcdir/$_gitname-build + + # BUILD + cd Platform/Linux-x86/Build + make NI_CONF_DIR=/etc || return 1 +} + +package() { + install -d -m755 ${pkgdir}/usr/{lib,bin} + + cd $srcdir/$_gitname-build/Platform/Linux-x86/Bin/Release + install XnSensorServer ${pkgdir}/usr/bin + install libXnCore.so libXnDDK.so libXnDeviceFile.so libXnDeviceSensorV2KM.so libXnFormats.so ${pkgdir}/usr/lib + chmod +s ${pkgdir}/usr/bin/XnSensorServer + + cd $srcdir/$_gitname-build/Platform/Linux-x86/Install + install -d -m755 ${pkgdir}/etc/udev/rules.d + install 55-primesense-usb.rules ${pkgdir}/etc/udev/rules.d + + cd $srcdir/$_gitname-build/Data + install -d -m755 ${pkgdir}/etc/primesense + install GlobalDefaultsKinect.ini ${pkgdir}/etc/primesense + + install -d -m777 ${pkgdir}/var/log/primesense/XnSensorServer +} diff --git a/~lukeshu/openni-module-sensorkinect-git/PKGBUILD b/~lukeshu/openni-module-sensorkinect-git/PKGBUILD new file mode 100644 index 000000000..2a2abbdc5 --- /dev/null +++ b/~lukeshu/openni-module-sensorkinect-git/PKGBUILD @@ -0,0 +1,77 @@ +# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net> +# Contributor: pallegro from the AUR + +pkgname=openni-module-sensorkinect-git +pkgver=20111211 +pkgrel=2 +pkgdesc="OpenNI SensorKinect harware modules for the Xbox Kinect device" +arch=('i686' 'x86_64') +url="https://github.com/avin2/SensorKinect" +license=('GPL') +depends=('openni-unstable' 'kinect-udev') +makedepends=('git') +provides=('openni-module-sensorkinect') +conflicts=('openni-module-sensorkinect' 'openni-module-primesensor') +install="sensorkinect.install" +source=() +md5sums=() + +_gitroot="https://github.com/avin2/SensorKinect.git" +_gitname="sensorkinect" +_gitbranch="master" + +_os='Linux' +case "${CARCH}" in +'x86_64') _arch=x86;; +'i686') _arch=x86;; +'arm') _arch=Arm;; # untested +*) _arch=UNSUPPORTED_ARCH;; +esac +_platform="${_os}-${_arch}" + +build() { + cd "$srcdir" + msg "Connecting to GIT server...." + + if [ -d ${_gitname} ] ; then + cd ${_gitname} + git checkout master + git pull origin + msg "The local files are updated." + else + git clone ${_gitroot} ${_gitname} + cd ${_gitname} + fi + git checkout ${_gitbranch} + cd .. + + msg "GIT checkout done or server timeout" + msg "Starting build..." + + rm -rf "$srcdir/$_gitname-build" + git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build" + cd $srcdir/$_gitname-build + + # BUILD + cd Platform/${_platform}/Build + make + make redist +} + +package() { + cd $srcdir/$_gitname-build + cd Platform/${_platform}/Redist + + # This is all cloned from ./install.sh, which can't be used for a number + # of reasons. + install -d $pkgdir/usr/{lib,bin} + install -m755 Lib/* $pkgdir/usr/lib + install -m755 Bin/* $pkgdir/usr/bin + + install -d $pkgdir/etc/primesense + install -m644 Config/GlobalDefaultsKinect.ini $pkgdir/etc/primesense + + chmod +s $pkgdir/usr/bin/XnSensorServer + + install -m777 -d $pkgdir/var/log/primesense/XnSensorServer +} diff --git a/~lukeshu/openni-module-sensorkinect-git/sensorkinect.install b/~lukeshu/openni-module-sensorkinect-git/sensorkinect.install new file mode 100644 index 000000000..d62d263d1 --- /dev/null +++ b/~lukeshu/openni-module-sensorkinect-git/sensorkinect.install @@ -0,0 +1,15 @@ +#!/bin/sh + +export MODULES="libXnDeviceSensorV2KM.so libXnDeviceFile.so" + +post_install() { + for module in $MODULES; do + /usr/bin/niReg -r /usr/lib/$module /etc/primesense + done +} + +pre_remove() { + for module in $MODULES; do + /usr/bin/niReg -u /usr/lib/$module + done +} diff --git a/~lukeshu/openni-unstable-git/PKGBUILD b/~lukeshu/openni-unstable-git/PKGBUILD new file mode 100644 index 000000000..07f276b02 --- /dev/null +++ b/~lukeshu/openni-unstable-git/PKGBUILD @@ -0,0 +1,286 @@ +# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net> +# Contributor: Sven Schneider <archlinux.sandmann@googlemail.com> +# Contributor: bugix +# Contributor: Lubosz Sarnecki <lubosz at gmail> + +# unfortunately we can't use $_suf in function names, but sed makes it ok +_suf='-unstable-git' +pkgname=( + openni$_suf + openni$_suf-docs + + openni$_suf-core + openni$_suf-core-samples + openni$_suf-core-samples-source + + openni$_suf-mono + openni$_suf-mono-samples + openni$_suf-mono-samples-source + + openni$_suf-java + openni$_suf-java-samples + openni$_suf-java-samples-source + ) +pkgver=20111121 +pkgrel=4 +arch=('i686' 'x86_64') +url="http://www.openni.org/" +license=('GPL') +makedepends=('git' 'doxygen' 'graphviz') +source=() +md5sums=() + +_gitroot="git://github.com/OpenNI/OpenNI.git" +_gitname="openni" +_gitbranch="unstable" +#_gitbranch="master" + +_os='Linux' +case "${CARCH}" in +'x86_64') _arch=x86;; +'i686') _arch=x86;; +'arm') _arch=Arm;; # untested +*) _arch=UNSUPPORTED_ARCH;; +esac +_platform="${_os}-${_arch}" + +export MAKEFLAGS+=' -j1 ' + +build() { + cd "${srcdir}" + msg "Connecting to GIT server...." + + if [ -d ${_gitname} ] ; then + cd ${_gitname} + git checkout master + git pull origin + msg "The local files are updated." + else + git clone ${_gitroot} ${_gitname} + cd ${_gitname} + fi + git checkout ${_gitbranch} + cd .. + + msg "GIT checkout done or server timeout" + msg "Starting make..." + + rm -rf "${srcdir}/${_gitname}-build" + git clone "${srcdir}/${_gitname}" "${srcdir}/${_gitname}-build" + cd "${srcdir}/${_gitname}-build" + + # PATCH + sed -i 's/python /python2 /' "Platform/${_os}/CreateRedist/RedistMaker" + echo ' +abs_core: $(ALL_MODULES) $(ALL_UTILS) +abs_core_samples: $(CORE_SAMPLES) +abs_java: $(ALL_JAVA_PROJS) +abs_java_samples: $(JAVA_SAMPLES) +abs_mono: $(ALL_MONO_PROJS) +abs_mono_samples: $(MONO_SAMPLES) $(MONO_FORMS_SAMPLES) +' >> "Platform/${_os}/Build/Makefile" + + + # BUILD + cd "Platform/${_os}/Build" + make -j1 \ + abs_core abs_core_samples \ + abs_java abs_java_samples \ + abs_mono abs_mono_samples || return 1 + + cd '../../../Source/DoxyGen' + mkdir html + doxygen Doxyfile + rm -rf html/*.map html*.md5 html/*.hhc html/*.hhp +} + +package_openni-unstable-git() { + pkgdesc="Open Natural Interface framework" + depends=("openni$_suf-core") + optdepends=("openni$_suf-docs: programmer documentation") + provides=('openni' 'openni-unstable') + conflicts=('openni' 'openni-unstable') +} + +package_openni-unstable-git-docs() { + pkgdesc="OpenNI programmer documentation" + arch=('any') + provides=('openni-docs' 'openni-unstable-docs') + conflicts=('openni-docs' 'openni-unstable-docs') + + cd "${srcdir}/${_gitname}-build/Source/DoxyGen/" + install -d "${pkgdir}/usr/share/openni" + cp -r html "${pkgdir}/usr/share/openni" +} + +package_openni-unstable-git-core() { + pkgdesc="OpenNI core libraries" + depends=('libusb' 'freeglut') + install="openni.install" + provides=('openni-core' 'openni-unstable-core') + conflicts=('openni-core' 'openni-unstable-core') + + cd "${srcdir}/${_gitname}-build/Platform/${_os}/Bin/${_arch}-Release" + + LIB_FILES=' + libnimCodecs.so + libnimMockNodes.so + libnimRecorder.so + libOpenNI.so + ' + install -d "${pkgdir}/usr/lib" + install -m755 $LIB_FILES "${pkgdir}/usr/lib" + + BIN_FILES='niReg niLicense' + install -d "${pkgdir}/usr/bin" + install -m755 $BIN_FILES "${pkgdir}/usr/bin" + + cd "${srcdir}/${_gitname}-build/Include" + install -d "${pkgdir}/usr/include/ni" + install -m644 *.h "${pkgdir}/usr/include/ni" + cp -r "${_platform}" "${pkgdir}/usr/include/ni" + + cd "${srcdir}/${_gitname}-build/Platform/${_os}/Build" + install -d "${pkgdir}/usr/share" + cp -r Common "${pkgdir}/usr/share/common" +} + +package_openni-unstable-git-java() { + pkgdesc="OpenNI java wrapper" + depends=("openni$_suf" 'java-environment') + provides=('openni-java' 'openni-unstable-java') + conflicts=('openni-java' 'openni-unstable-java') + + cd "${srcdir}/${_gitname}-build/Platform/${_os}/Bin/${_arch}-Release" + + install -d "${pkgdir}/usr/lib" + install -m755 libOpenNI.jni.so "${pkgdir}/usr/lib" + + install -d "${pkgdir}/usr/share/openni/java" + install -m755 org.OpenNI.jar "${pkgdir}/usr/share/openni/java" +} + +package_openni-unstable-git-mono() { + pkgdesc="OpenNI mono wrapper" + depends=("openni$_suf" 'mono') + provides=('openni-mono' 'openni-unstable-mono') + conflicts=('openni-mono' 'openni-unstable-mono') + + cd "${srcdir}/${_gitname}-build/Platform/${_os}/Bin/${_arch}-Release" + + install -d "${pkgdir}/usr/share/openni/mono" + install -m755 OpenNI.net.dll "${pkgdir}/usr/share/openni/mono" +} + +# SAMPLES + +_install_sample_source() { + sample=$1 + makefile="Platform/${_os}/Build/Samples/$sample/Makefile" + install -d "${pkgdir}/usr/share/openni/samples" + cp -r "Samples/$sample" "${pkgdir}/usr/share/openni/samples/$sample" + install -m644 "$makefile" "${pkgdir}/usr/share/openni/samples/$sample" +} + +# Leave out NiViewer, it's set up wrong +CORE_SAMPLES=' + AudioSample + BackRecorder + CRead + ConvertXToONI + RecordSynthetic + SimpleCreate + SimpleRead SimpleViewer UserTracker' +MONO_SAMPLES='SimpleRead SimpleViewer UserTracker' +JAVA_SAMPLES='SimpleRead SimpleViewer UserTracker' + +package_openni-unstable-git-core-samples() { + pkgdesc="OpenNI sample programs" + depends=("openni$_suf-core") + optdepends=('openni-core-samples-source: source code for the samples') + provides=('openni-core-samples' 'openni-unstable-core-samples') + conflicts=('openni-core-samples' 'openni-unstable-core-samples') + + cd "${srcdir}/${_gitname}-build/Platform/${_os}/Bin/${_arch}-Release" + install -d "${pkgdir}/usr/bin" + install -m755 NiViewer "${pkgdir}/usr/bin/niSample-Viewer" + for sample in $CORE_SAMPLES; do + install -m766 Sample-Ni$sample "${pkgdir}/usr/bin/niSample-$sample" + done +} +package_openni-unstable-git-core-samples-source() { + pkgdesc="OpenNI sample programs source code" + depends=("openni$_suf-core") + provides=('openni-core-samples-source' 'openni-unstable-core-samples-source') + conflicts=('openni-core-samples-source' 'openni-unstable-core-samples-source') + options+=('!strip') + + cd "${srcdir}/${_gitname}-build" + for sample in Viewer $CORE_SAMPLES; do + _install_sample_source Ni$sample + done +} + +package_openni-unstable-git-java-samples() { + pkgdesc="OpenNI java wrapper sample programs" + depends=("openni$_suf-java") + optdepends=("openni$_suf-java-samples-source: source code for the samples") + arch=('any') + provides=('openni-java-samples' 'openni-unstable-java-samples') + conflicts=('openni-java-samples' 'openni-unstable-java-samples') + + cd "${srcdir}/${_gitname}-build/Platform/${_os}/Bin/${_arch}-Release" + install -d "${pkgdir}/usr/bin" + install -d "${pkgdir}/usr/share/openni/java" + for sample in $JAVA_SAMPLES; do + install -m644 org.OpenNI.Samples.$sample.jar "${pkgdir}/usr/share/openni/java" + echo "#/bin/sh +java -jar /usr/share/openni/java/org.OpenNI.Samples.$sample.jar $@ +" > "${pkgdir}/usr/bin/niSample-$sample.jar" + chmod 755 "${pkgdir}/usr/bin/niSample-$sample.jar" + done +} +package_openni-unstable-git-java-samples-source() { + pkgdesc="OpenNI java wrapper sample programs source code" + depends=("openni$_suf-java") + provides=('openni-java-samples-source' 'openni-unstable-java-samples-source') + conflicts=('openni-java-samples-source' 'openni-unstable-java-samples-source') + options+=('!strip') + + cd "${srcdir}/${_gitname}-build" + for sample in $JAVA_SAMPLES; do + _install_sample_source $sample.java + done +} + +package_openni-unstable-git-mono-samples() { + pkgdesc="OpenNI java wrapper sample programs" + depends=("openni$_suf-mono") + optdepends=("openni$_suf-mono-samples-source: source code for the samples") + provides=('openni-mono-samples' 'openni-unstable-mono-samples') + conflicts=('openni-mono-samples' 'openni-unstable-mono-samples') + + cd "${srcdir}/${_gitname}-build/Platform/${_os}/Bin/${_arch}-Release" + install -d "${pkgdir}/usr/bin" + install -d "${pkgdir}/usr/share/openni/mono" + for sample in $MONO_SAMPLES; do + install -m755 $sample.net.exe "${pkgdir}/usr/share/openni/mono" + echo "#/bin/sh +cd /usr/share/openni/mono +mono $sample.net.exe $@ +" > "${pkgdir}/usr/bin/niSample-$sample.net" + chmod 755 "${pkgdir}/usr/bin/niSample-$sample.net" + done +} +package_openni-unstable-git-mono-samples-source() { + pkgdesc="OpenNI mono wrapper sample programs source code" + depends=("openni$_suf-mono") + provides=('openni-mono-samples-source' 'openni-unstable-mono-samples-source') + conflicts=('openni-mono-samples-source' 'openni-unstable-mono-samples-source') + options+=('!strip') + + cd "${srcdir}/${_gitname}-build" + for sample in $MONO_SAMPLES; do + _install_sample_source $sample.net + done +} diff --git a/~lukeshu/openni-unstable-git/openni.install b/~lukeshu/openni-unstable-git/openni.install new file mode 100644 index 000000000..8470f4512 --- /dev/null +++ b/~lukeshu/openni-unstable-git/openni.install @@ -0,0 +1,11 @@ +post_install() { + MODULES="libnimMockNodes.so libnimCodecs.so libnimRecorder.so" + for module in $MODULES + do + /usr/bin/niReg /usr/lib/$module + done +} + +pre_remove() { + rm /var/lib/ni/modules.xml +} diff --git a/~lukeshu/openni-unstable/PKGBUILD b/~lukeshu/openni-unstable/PKGBUILD new file mode 100644 index 000000000..32020d726 --- /dev/null +++ b/~lukeshu/openni-unstable/PKGBUILD @@ -0,0 +1,287 @@ +# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net> +# Contributor: Sven Schneider <archlinux.sandmann@googlemail.com> +# Contributor: bugix +# Contributor: Lubosz Sarnecki <lubosz at gmail> + +# unfortunately we can't use $_suf in function names, but sed makes it ok +_suf='-unstable' +pkgname=( + openni$_suf + openni$_suf-docs + + openni$_suf-core + openni$_suf-core-samples + openni$_suf-core-samples-source + + openni$_suf-mono + openni$_suf-mono-samples + openni$_suf-mono-samples-source + + openni$_suf-java + openni$_suf-java-samples + openni$_suf-java-samples-source + ) +pkgver=1.3.4.6 +pkgrel=4 +arch=('i686' 'x86_64') +url="http://www.openni.org/" +license=('GPL') +makedepends=('git' 'doxygen' 'graphviz') +source=() +md5sums=() + +__gitroot="git://github.com/OpenNI/OpenNI.git" +_gitname="openni" +#_gitbranch="unstable" +#_gitbranch="master" +_gitbranch="Unstable-$pkgver" + +_os='Linux' +case "${CARCH}" in +'x86_64') _arch=x86;; +'i686') _arch=x86;; +'arm') _arch=Arm;; # untested +*) _arch=UNSUPPORTED_ARCH;; +esac +_platform="${_os}-${_arch}" + +export MAKEFLAGS+=' -j1 ' + +build() { + cd "${srcdir}" + msg "Connecting to GIT server...." + + if [ -d ${_gitname} ] ; then + cd ${_gitname} + git checkout master + git pull origin + msg "The local files are updated." + else + git clone ${__gitroot} ${_gitname} + cd ${_gitname} + fi + git checkout ${_gitbranch} + cd .. + + msg "GIT checkout done or server timeout" + msg "Starting make..." + + rm -rf "${srcdir}/${_gitname}-build" + git clone "${srcdir}/${_gitname}" "${srcdir}/${_gitname}-build" + cd "${srcdir}/${_gitname}-build" + + # PATCH + sed -i 's/python /python2 /' "Platform/${_os}/CreateRedist/RedistMaker" + echo ' +abs_core: $(ALL_MODULES) $(ALL_UTILS) +abs_core_samples: $(CORE_SAMPLES) +abs_java: $(ALL_JAVA_PROJS) +abs_java_samples: $(JAVA_SAMPLES) +abs_mono: $(ALL_MONO_PROJS) +abs_mono_samples: $(MONO_SAMPLES) $(MONO_FORMS_SAMPLES) +' >> "Platform/${_os}/Build/Makefile" + + + # BUILD + cd "Platform/${_os}/Build" + make -j1 \ + abs_core abs_core_samples \ + abs_java abs_java_samples \ + abs_mono abs_mono_samples || return 1 + + cd '../../../Source/DoxyGen' + mkdir html + doxygen Doxyfile + rm -rf html/*.map html*.md5 html/*.hhc html/*.hhp +} + +package_openni-unstable() { + pkgdesc="Open Natural Interface framework" + depends=("openni$_suf-core") + optdepends=("openni$_suf-docs: programmer documentation") + provides=('openni') + conflicts=('openni') +} + +package_openni-unstable-docs() { + pkgdesc="OpenNI programmer documentation" + arch=('any') + provides=('openni-docs') + conflicts=('openni-docs') + + cd "${srcdir}/${_gitname}-build/Source/DoxyGen/" + install -d "${pkgdir}/usr/share/openni" + cp -r html "${pkgdir}/usr/share/openni" +} + +package_openni-unstable-core() { + pkgdesc="OpenNI core libraries" + depends=('libusb' 'freeglut') + install="openni.install" + provides=('openni-core') + conflicts=('openni-core') + + cd "${srcdir}/${_gitname}-build/Platform/${_os}/Bin/${_arch}-Release" + + LIB_FILES=' + libnimCodecs.so + libnimMockNodes.so + libnimRecorder.so + libOpenNI.so + ' + install -d "${pkgdir}/usr/lib" + install -m755 $LIB_FILES "${pkgdir}/usr/lib" + + BIN_FILES='niReg niLicense' + install -d "${pkgdir}/usr/bin" + install -m755 $BIN_FILES "${pkgdir}/usr/bin" + + cd "${srcdir}/${_gitname}-build/Include" + install -d "${pkgdir}/usr/include/ni" + install -m644 *.h "${pkgdir}/usr/include/ni" + cp -r "${_platform}" "${pkgdir}/usr/include/ni" + + cd "${srcdir}/${_gitname}-build/Platform/${_os}/Build" + install -d "${pkgdir}/usr/share" + cp -r Common "${pkgdir}/usr/share/common" +} + +package_openni-unstable-java() { + pkgdesc="OpenNI java wrapper" + depends=("openni$_suf" 'java-environment') + provides=('openni-java') + conflicts=('openni-java') + + cd "${srcdir}/${_gitname}-build/Platform/${_os}/Bin/${_arch}-Release" + + install -d "${pkgdir}/usr/lib" + install -m755 libOpenNI.jni.so "${pkgdir}/usr/lib" + + install -d "${pkgdir}/usr/share/openni/java" + install -m755 org.OpenNI.jar "${pkgdir}/usr/share/openni/java" +} + +package_openni-unstable-mono() { + pkgdesc="OpenNI mono wrapper" + depends=("openni$_suf" 'mono') + provides=('openni-mono') + conflicts=('openni-mono') + + cd "${srcdir}/${_gitname}-build/Platform/${_os}/Bin/${_arch}-Release" + + install -d "${pkgdir}/usr/share/openni/mono" + install -m755 OpenNI.net.dll "${pkgdir}/usr/share/openni/mono" +} + +# SAMPLES + +_install_sample_source() { + sample=$1 + makefile="Platform/${_os}/Build/Samples/$sample/Makefile" + install -d "${pkgdir}/usr/share/openni/samples" + cp -r "Samples/$sample" "${pkgdir}/usr/share/openni/samples/$sample" + install -m644 "$makefile" "${pkgdir}/usr/share/openni/samples/$sample" +} + +# Leave out NiViewer, it's set up wrong +CORE_SAMPLES=' + AudioSample + BackRecorder + CRead + ConvertXToONI + RecordSynthetic + SimpleCreate + SimpleRead SimpleViewer UserTracker' +MONO_SAMPLES='SimpleRead SimpleViewer UserTracker' +JAVA_SAMPLES='SimpleRead SimpleViewer UserTracker' + +package_openni-unstable-core-samples() { + pkgdesc="OpenNI sample programs" + depends=("openni$_suf-core") + optdepends=('openni-core-samples-source: source code for the samples') + provides=('openni-core-samples') + conflicts=('openni-core-samples') + + cd "${srcdir}/${_gitname}-build/Platform/${_os}/Bin/${_arch}-Release" + install -d "${pkgdir}/usr/bin" + install -m755 NiViewer "${pkgdir}/usr/bin/niSample-Viewer" + for sample in $CORE_SAMPLES; do + install -m766 Sample-Ni$sample "${pkgdir}/usr/bin/niSample-$sample" + done +} +package_openni-unstable-core-samples-source() { + pkgdesc="OpenNI sample programs source code" + depends=("openni$_suf-core") + provides=('openni-core-samples-source') + conflicts=('openni-core-samples-source') + options+=('!strip') + + cd "${srcdir}/${_gitname}-build" + for sample in Viewer $CORE_SAMPLES; do + _install_sample_source Ni$sample + done +} + +package_openni-unstable-java-samples() { + pkgdesc="OpenNI java wrapper sample programs" + depends=("openni$_suf-java") + optdepends=("openni$_suf-java-samples-source: source code for the samples") + arch=('any') + provides=('openni-java-samples') + conflicts=('openni-java-samples') + + cd "${srcdir}/${_gitname}-build/Platform/${_os}/Bin/${_arch}-Release" + install -d "${pkgdir}/usr/bin" + install -d "${pkgdir}/usr/share/openni/java" + for sample in $JAVA_SAMPLES; do + install -m644 org.OpenNI.Samples.$sample.jar "${pkgdir}/usr/share/openni/java" + echo "#/bin/sh +java -jar /usr/share/openni/java/org.OpenNI.Samples.$sample.jar $@ +" > "${pkgdir}/usr/bin/niSample-$sample.jar" + chmod 755 "${pkgdir}/usr/bin/niSample-$sample.jar" + done +} +package_openni-unstable-java-samples-source() { + pkgdesc="OpenNI java wrapper sample programs source code" + depends=("openni$_suf-java") + provides=('openni-java-samples-source') + conflicts=('openni-java-samples-source') + options+=('!strip') + + cd "${srcdir}/${_gitname}-build" + for sample in $JAVA_SAMPLES; do + _install_sample_source $sample.java + done +} + +package_openni-unstable-mono-samples() { + pkgdesc="OpenNI java wrapper sample programs" + depends=("openni$_suf-mono") + optdepends=("openni$_suf-mono-samples-source: source code for the samples") + provides=('openni-mono-samples') + conflicts=('openni-mono-samples') + + cd "${srcdir}/${_gitname}-build/Platform/${_os}/Bin/${_arch}-Release" + install -d "${pkgdir}/usr/bin" + install -d "${pkgdir}/usr/share/openni/mono" + for sample in $MONO_SAMPLES; do + install -m755 $sample.net.exe "${pkgdir}/usr/share/openni/mono" + echo "#/bin/sh +cd /usr/share/openni/mono +mono $sample.net.exe $@ +" > "${pkgdir}/usr/bin/niSample-$sample.net" + chmod 755 "${pkgdir}/usr/bin/niSample-$sample.net" + done +} +package_openni-unstable-mono-samples-source() { + pkgdesc="OpenNI mono wrapper sample programs source code" + depends=("openni$_suf-mono") + provides=('openni-mono-samples-source') + conflicts=('openni-mono-samples-source') + options+=('!strip') + + cd "${srcdir}/${_gitname}-build" + for sample in $MONO_SAMPLES; do + _install_sample_source $sample.net + done +} diff --git a/~lukeshu/openni-unstable/openni.install b/~lukeshu/openni-unstable/openni.install new file mode 100644 index 000000000..8470f4512 --- /dev/null +++ b/~lukeshu/openni-unstable/openni.install @@ -0,0 +1,11 @@ +post_install() { + MODULES="libnimMockNodes.so libnimCodecs.so libnimRecorder.so" + for module in $MODULES + do + /usr/bin/niReg /usr/lib/$module + done +} + +pre_remove() { + rm /var/lib/ni/modules.xml +} diff --git a/~lukeshu/openni/PKGBUILD b/~lukeshu/openni/PKGBUILD new file mode 100644 index 000000000..2cdc2fd7d --- /dev/null +++ b/~lukeshu/openni/PKGBUILD @@ -0,0 +1,288 @@ +# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net> +# Contributor: Sven Schneider <archlinux.sandmann@googlemail.com> +# Contributor: bugix +# Contributor: Lubosz Sarnecki <lubosz at gmail> + +# unfortunately we can't use $_suf in function names, but sed makes it ok +_suf='' +pkgname=( + openni$_suf + openni$_suf-docs + + openni$_suf-core + openni$_suf-core-samples + openni$_suf-core-samples-source + + openni$_suf-mono + openni$_suf-mono-samples + openni$_suf-mono-samples-source + + openni$_suf-java + openni$_suf-java-samples + openni$_suf-java-samples-source + ) +pkgver=1.3.3.6 +pkgrel=4 +arch=('i686' 'x86_64') +url="http://www.openni.org/" +license=('GPL') +makedepends=('git' 'doxygen' 'graphviz') +source=() +md5sums=() + +__gitroot="git://github.com/OpenNI/OpenNI.git" +_gitname="openni" +#_gitbranch="unstable" +#_gitbranch="master" +_gitbranch="Stable-$pkgver" + +_os='Linux' +case "${CARCH}" in +'x86_64') _arch=x86;; +'i686') _arch=x86;; +'arm') _arch=Arm;; # untested +*) _arch=UNSUPPORTED_ARCH;; +esac +_platform="${_os}-${_arch}" + +export MAKEFLAGS+=' -j1 ' + +build() { + cd "${srcdir}" + msg "Connecting to GIT server...." + + if [ -d ${_gitname} ] ; then + cd ${_gitname} + git checkout master + git pull origin + msg "The local files are updated." + else + git clone ${__gitroot} ${_gitname} + cd ${_gitname} + fi + git checkout ${_gitbranch} + cd .. + + msg "GIT checkout done or server timeout" + msg "Starting make..." + + rm -rf "${srcdir}/${_gitname}-build" + git clone "${srcdir}/${_gitname}" "${srcdir}/${_gitname}-build" + cd "${srcdir}/${_gitname}-build" + + # PATCH + sed -i 's/python /python2 /' "Platform/${_platform}/CreateRedist/RedistMaker" + mv Wrappers/OpenNI.java/src/org/OpenNI/AlternativeView{p,P}ointCapability.java + echo ' +abs_core: $(ALL_MODULES) $(ALL_UTILS) +abs_core_samples: $(CORE_SAMPLES) +abs_java: $(ALL_JAVA_PROJS) +abs_java_samples: $(JAVA_SAMPLES) +abs_mono: $(ALL_MONO_PROJS) +abs_mono_samples: $(MONO_SAMPLES) $(MONO_FORMS_SAMPLES) +' >> "Platform/${_platform}/Build/Makefile" + + + # BUILD + cd "Platform/${_platform}/Build" + make -j1 \ + abs_core abs_core_samples \ + abs_java abs_java_samples \ + abs_mono abs_mono_samples || return 1 + + cd '../../../Source/DoxyGen' + mkdir html + doxygen Doxyfile + rm -rf html/*.map html*.md5 html/*.hhc html/*.hhp +} + +package_openni() { + pkgdesc="Open Natural Interface framework" + depends=("openni$_suf-core") + optdepends=("openni$_suf-docs: programmer documentation") + provides=('openni') + conflicts=('openni') +} + +package_openni-docs() { + pkgdesc="OpenNI programmer documentation" + arch=('any') + provides=('openni-docs') + conflicts=('openni-docs') + + cd "${srcdir}/${_gitname}-build/Source/DoxyGen/" + install -d "${pkgdir}/usr/share/openni" + cp -r html "${pkgdir}/usr/share/openni" +} + +package_openni-core() { + pkgdesc="OpenNI core libraries" + depends=('libusb' 'freeglut') + install="openni.install" + provides=('openni-core') + conflicts=('openni-core') + + cd "${srcdir}/${_gitname}-build/Platform/${_platform}/Bin/Release" + + LIB_FILES=' + libnimCodecs.so + libnimMockNodes.so + libnimRecorder.so + libOpenNI.so + ' + install -d "${pkgdir}/usr/lib" + install -m755 $LIB_FILES "${pkgdir}/usr/lib" + + BIN_FILES='niReg niLicense' + install -d "${pkgdir}/usr/bin" + install -m755 $BIN_FILES "${pkgdir}/usr/bin" + + cd "${srcdir}/${_gitname}-build/Include" + install -d "${pkgdir}/usr/include/ni" + install -m644 *.h "${pkgdir}/usr/include/ni" + cp -r "${_platform}" "${pkgdir}/usr/include/ni" + + cd "${srcdir}/${_gitname}-build/Platform/${_platform}/Build" + install -d "${pkgdir}/usr/share" + cp -r Common "${pkgdir}/usr/share/common" +} + +package_openni-java() { + pkgdesc="OpenNI java wrapper" + depends=("openni$_suf" 'java-environment') + provides=('openni-java') + conflicts=('openni-java') + + cd "${srcdir}/${_gitname}-build/Platform/${_platform}/Bin/Release" + + install -d "${pkgdir}/usr/lib" + install -m755 libOpenNI.jni.so "${pkgdir}/usr/lib" + + install -d "${pkgdir}/usr/share/openni/java" + install -m755 org.OpenNI.jar "${pkgdir}/usr/share/openni/java" +} + +package_openni-mono() { + pkgdesc="OpenNI mono wrapper" + depends=("openni$_suf" 'mono') + provides=('openni-mono') + conflicts=('openni-mono') + + cd "${srcdir}/${_gitname}-build/Platform/${_platform}/Bin/Release" + + install -d "${pkgdir}/usr/share/openni/mono" + install -m755 OpenNI.net.dll "${pkgdir}/usr/share/openni/mono" +} + +# SAMPLES + +_install_sample_source() { + sample=$1 + makefile="Platform/${_platform}/Build/Samples/$sample/Makefile" + install -d "${pkgdir}/usr/share/openni/samples" + cp -r "Samples/$sample" "${pkgdir}/usr/share/openni/samples/$sample" + install -m644 "$makefile" "${pkgdir}/usr/share/openni/samples/$sample" +} + +# Leave out NiViewer, it's set up wrong +CORE_SAMPLES=' + AudioSample + BackRecorder + CRead + ConvertXToONI + RecordSynthetic + SimpleCreate + SimpleRead SimpleViewer UserTracker' +MONO_SAMPLES='SimpleRead SimpleViewer UserTracker' +JAVA_SAMPLES='SimpleRead SimpleViewer UserTracker' + +package_openni-core-samples() { + pkgdesc="OpenNI sample programs" + depends=("openni$_suf-core") + optdepends=('openni-core-samples-source: source code for the samples') + provides=('openni-core-samples') + conflicts=('openni-core-samples') + + cd "${srcdir}/${_gitname}-build/Platform/${_platform}/Bin/Release" + install -d "${pkgdir}/usr/bin" + install -m755 NiViewer "${pkgdir}/usr/bin/niSample-Viewer" + for sample in $CORE_SAMPLES; do + install -m766 Sample-Ni$sample "${pkgdir}/usr/bin/niSample-$sample" + done +} +package_openni-core-samples-source() { + pkgdesc="OpenNI sample programs source code" + depends=("openni$_suf-core") + provides=('openni-core-samples-source') + conflicts=('openni-core-samples-source') + options+=('!strip') + + cd "${srcdir}/${_gitname}-build" + for sample in Viewer $CORE_SAMPLES; do + _install_sample_source Ni$sample + done +} + +package_openni-java-samples() { + pkgdesc="OpenNI java wrapper sample programs" + depends=("openni$_suf-java") + optdepends=("openni$_suf-java-samples-source: source code for the samples") + arch=('any') + provides=('openni-java-samples') + conflicts=('openni-java-samples') + + cd "${srcdir}/${_gitname}-build/Platform/${_platform}/Bin/Release" + install -d "${pkgdir}/usr/bin" + install -d "${pkgdir}/usr/share/openni/java" + for sample in $JAVA_SAMPLES; do + install -m644 org.OpenNI.Samples.$sample.jar "${pkgdir}/usr/share/openni/java" + echo "#/bin/sh +java -jar /usr/share/openni/java/org.OpenNI.Samples.$sample.jar $@ +" > "${pkgdir}/usr/bin/niSample-$sample.jar" + chmod 755 "${pkgdir}/usr/bin/niSample-$sample.jar" + done +} +package_openni-java-samples-source() { + pkgdesc="OpenNI java wrapper sample programs source code" + depends=("openni$_suf-java") + provides=('openni-java-samples-source') + conflicts=('openni-java-samples-source') + options+=('!strip') + + cd "${srcdir}/${_gitname}-build" + for sample in $JAVA_SAMPLES; do + _install_sample_source $sample.java + done +} + +package_openni-mono-samples() { + pkgdesc="OpenNI java wrapper sample programs" + depends=("openni$_suf-mono") + optdepends=("openni$_suf-mono-samples-source: source code for the samples") + provides=('openni-mono-samples') + conflicts=('openni-mono-samples') + + cd "${srcdir}/${_gitname}-build/Platform/${_platform}/Bin/Release" + install -d "${pkgdir}/usr/bin" + install -d "${pkgdir}/usr/share/openni/mono" + for sample in $MONO_SAMPLES; do + install -m755 $sample.net.exe "${pkgdir}/usr/share/openni/mono" + echo "#/bin/sh +cd /usr/share/openni/mono +mono $sample.net.exe $@ +" > "${pkgdir}/usr/bin/niSample-$sample.net" + chmod 755 "${pkgdir}/usr/bin/niSample-$sample.net" + done +} +package_openni-mono-samples-source() { + pkgdesc="OpenNI mono wrapper sample programs source code" + depends=("openni$_suf-mono") + provides=('openni-mono-samples-source') + conflicts=('openni-mono-samples-source') + options+=('!strip') + + cd "${srcdir}/${_gitname}-build" + for sample in $MONO_SAMPLES; do + _install_sample_source $sample.net + done +} diff --git a/~lukeshu/openni/openni.install b/~lukeshu/openni/openni.install new file mode 100644 index 000000000..8470f4512 --- /dev/null +++ b/~lukeshu/openni/openni.install @@ -0,0 +1,11 @@ +post_install() { + MODULES="libnimMockNodes.so libnimCodecs.so libnimRecorder.so" + for module in $MODULES + do + /usr/bin/niReg /usr/lib/$module + done +} + +pre_remove() { + rm /var/lib/ni/modules.xml +} diff --git a/~lukeshu/pngcrush/LICENSE b/~lukeshu/pngcrush/LICENSE new file mode 100644 index 000000000..3412dd04e --- /dev/null +++ b/~lukeshu/pngcrush/LICENSE @@ -0,0 +1,42 @@ + +NOTICES + +If you have modified this source, you may insert additional notices +immediately after this sentence. + +COPYRIGHT: + +Copyright (C) 1998-2002,2006-2009 Glenn Randers-Pehrson + (glennrp at users.sf.net) +Copyright (C) 2005 Greg Roelofs + +DISCLAIMERS: + +The pngcrush computer program is supplied "AS IS". The Author disclaims all +warranties, expressed or implied, including, without limitation, the +warranties of merchantability and of fitness for any purpose. The +Author assumes no liability for direct, indirect, incidental, special, +exemplary, or consequential damages, which may result from the use of +the computer program, even if advised of the possibility of such damage. +There is no warranty against interference with your enjoyment of the +computer program or against infringement. There is no warranty that my +efforts or the computer program will fulfill any of your particular purposes +or needs. This computer program is provided with all faults, and the entire +risk of satisfactory quality, performance, accuracy, and effort is with +the user. + +LICENSE: + +Permission is hereby irrevocably granted to everyone to use, copy, modify, +and distribute this source code, or portions hereof, or executable programs +compiled from it, for any purpose, without payment of any fee, subject to +the following restrictions: + +1. The origin of this source code must not be misrepresented. + +2. Altered versions must be plainly marked as such and must not be + misrepresented as being the original source. + +3. This Copyright notice, disclaimer, and license may not be removed + or altered from any source or altered source distribution. + diff --git a/~lukeshu/pngcrush/PKGBUILD b/~lukeshu/pngcrush/PKGBUILD new file mode 100644 index 000000000..e3b477086 --- /dev/null +++ b/~lukeshu/pngcrush/PKGBUILD @@ -0,0 +1,30 @@ +# Contributor: Anton Bazhenov <anton.bazhenov at gmail> +# Contributer: HuntXu <huntxu@live.cn> +# Maintainer: Stefan Husmann <stefan-husmann@t-online.de> + +pkgname=pngcrush +pkgver=1.7.15 +pkgrel=1 +pkgdesc="A tool for optimizing the compression of PNG files" +arch=('i686' 'x86_64') +url="http://pmt.sourceforge.net/" +license=('custom') +depends=('glibc') +source=(http://downloads.sourceforge.net/pmt/$pkgname-$pkgver.tar.xz + LICENSE) +md5sums=('c21cf76d187dadd4c137e894dcb593bf' + 'e6446a786d939c98fcada57f9ae6de1f') + +build() { + cd "$srcdir"/$pkgname-$pkgver + # fix for better compression + sed -i 's|TOO_FAR 4096|TOO_FAR 32767|' deflate.c + make +} + +package() { + install -Dm755 "$srcdir"/$pkgname-$pkgver/$pkgname \ + "$pkgdir"/usr/bin/$pkgname + install -Dm644 $srcdir/LICENSE \ + "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} diff --git a/~lukeshu/unar/PKGBUILD b/~lukeshu/unar/PKGBUILD new file mode 100644 index 000000000..4bb523a89 --- /dev/null +++ b/~lukeshu/unar/PKGBUILD @@ -0,0 +1,96 @@ +# Contributor: Cedric Girard <girard.cedric@gmail.com> +# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net> + +pkgname=( + 'unar' + 'libuniversaldetector' + 'libxadmaster' + 'libxadmaster-libxad') +pkgver=0.99 +pkgrel=1 +arch=('x86_64' 'i686') +url="http://wakaba.c3.cx/s/apps/unarchiver.html" +license=('LGPL2.1') +depends=('gnustep-base-libre>=1.23.0' 'openssl' 'bzip2' 'icu' 'gcc-libs' 'zlib') +conflicts=('gnustep-base>=1.24') +makedepends=('gcc-objc') +source=("https://theunarchiver.googlecode.com/files/unar${pkgver}_src.zip") + +build() { + cd "$srcdir/XADMaster" + + # remove some OS X object files that were accidentally included in the dist + # (we've all done it) + find "$srcdir" -name '*.o' -delete + + # build everything + . /usr/share/GNUstep/Makefiles/GNUstep.sh + make -f Makefile.linux + + # make libxad into a lib file + cd libxad + rm -f libxad.a + ar rcs libxad.a all.o clients.o unix/emulation.o unix/init.o + + # compress man pages + cd "$srcdir/Extra" + gzip -c unar.1 > unar.1.gz + gzip -c lsar.1 > lsar.1.gz +} + +package_unar() { + pkgdesc="The unar/lsar command line wrappers around libXADMaster" + + cd "$srcdir/XADMaster" + install -d "$pkgdir/usr/bin" + install -m755 unar lsar "$pkgdir/usr/bin" + + cd "$srcdir/Extra" + install -d "$pkgdir/usr/share/man/man1" + install unar.1.gz lsar.1.gz "$pkgdir/usr/share/man/man1" +} + +package_libuniversaldetector() { + pkgdesc="Some fancy-schmancy Objective-C library that detects things?" + + cd "$srcdir/UniversalDetector" + install -d "$pkgdir/usr/lib/" + install libUniversalDetector.a "$pkgdir/usr/lib/" + install -d "$pkgdir/usr/include/" + install UniversalDetector.h "$pkgdir/usr/include/" +} + +package_libxadmaster() { + pkgdesc="An Objective-C library built around libxad adding support for other formats" + depends+=('libuniversaldetector') + + header_files=' + CommandLineCommon.h + NSStringPrinting.h + XADArchive.h + XADRegex.h + XADSimpleUnarchiver.h + XADUnarchiver.h + ' + + cd "$srcdir/XADMaster" + install -d "$pkgdir/usr/lib" + install libXADMaster.a "$pkgdir/usr/lib" + install -d "$pkgdir/usr/include/XADMaster" + install $header_files "$pkgdir/usr/include/XADMaster" +} + +package_libxadmaster-libxad() { + pkgdesc="A fork of libxad, the port of the Amiga 'xadmaster.library' to *NIX" + depends=('glibc') + provides=('libxad') + conflicts=('libxad') + + cd "$srcdir/XADMaster/libxad" + install -d "$pkgdir/usr/lib" + install libxad.a "$pkgdir/usr/lib" + install -d "$pkgdir/usr/include/libxad" + install include/* "$pkgdir/usr/include/libxad" +} + +md5sums=('2169b920cf62956e495cfd5e0780a41e') diff --git a/~lukeshu/unarchiver/PKGBUILD b/~lukeshu/unarchiver/PKGBUILD new file mode 100644 index 000000000..0df133a6c --- /dev/null +++ b/~lukeshu/unarchiver/PKGBUILD @@ -0,0 +1,93 @@ +# Contributor: Cedric Girard <girard.cedric@gmail.com> +# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net> + +pkgname=( + 'unarchiver' + 'unar' + 'libuniversaldetector' + 'libxadmaster' + 'libxadmaster-libxad') +pkgver=2.7.1 +pkgrel=4 +arch=('x86_64' 'i686') +url="http://wakaba.c3.cx/s/apps/unarchiver.html" +license=('LGPL2.1') +depends=('gnustep-base-libre>=1.23.0' 'openssl' 'bzip2' 'icu' 'gcc-libs' 'zlib') +conflicts=('gnustep-base>=1.24') +makedepends=('gcc-objc') +source=("http://theunarchiver.googlecode.com/files/TheUnarchiver${pkgver}_src.zip") + +build() { + cd "$srcdir/The Unarchiver/XADMaster" + + # build everything + . /usr/share/GNUstep/Makefiles/GNUstep.sh + make -f Makefile.linux + + # make libxad into a lib file + cd libxad + rm -f libxad.a + ar rcs libxad.a all.o clients.o unix/emulation.o unix/init.o +} + +package_unarchiver() { + pkgdesc="An Objective-C application for uncompressing archive files" + arch=('any') + depends=(${depends[@]} 'unar>=0.4') +} + +package_unar() { + pkgver=0.4 + pkgdesc="The unar/lsar command line wrappers around libXADMaster" + + cd "$srcdir/The Unarchiver/XADMaster" + install -d "$pkgdir/usr/bin" + install -m755 unar lsar "$pkgdir/usr/bin" +} + +package_libuniversaldetector() { + pkgver=0.4 + pkgdesc="Some fancy-schmancy Objective-C library that detects things?" + + cd "$srcdir/The Unarchiver/UniversalDetector" + install -d "$pkgdir/usr/lib" + install libUniversalDetector.a "$pkgdir/usr/lib" + install -d "$pkgdir/usr/include" + install UniversalDetector.h "$pkgdir/usr/include" +} + +package_libxadmaster() { + pkgver=0.4 + pkgdesc="An Objective-C library built around libxad adding support for other formats" + depends+=('libuniversaldetector') + + header_files=' + CommandLineCommon.h + NSStringPrinting.h + XADArchive.h + XADRegex.h + XADUnarchiver.h + ' + + cd "$srcdir/The Unarchiver/XADMaster" + install -d "$pkgdir/usr/lib" + install libXADMaster.a "$pkgdir/usr/lib" + install -d "$pkgdir/usr/include/XADMaster" + install $header_files "$pkgdir/usr/include/XADMaster" +} + +package_libxadmaster-libxad() { + pkgver=0.4 # forked from 13.0.2005.06.23 (commit 1.24) + pkgdesc="A fork of libxad, the port of the Amiga 'xadmaster.library' to *NIX" + depends=('glibc') + provides=('libxad') + conflicts=('libxad') + + cd "$srcdir/The Unarchiver/XADMaster/libxad" + install -d "$pkgdir/usr/lib" + install libxad.a "$pkgdir/usr/lib" + install -d "$pkgdir/usr/include/libxad" + install include/* "$pkgdir/usr/include/libxad" +} + +md5sums=('498ea1c984d5783322e070a71922b422') diff --git a/~lukeshu/xadmaster/PKGBUILD b/~lukeshu/xadmaster/PKGBUILD new file mode 100644 index 000000000..8f358aae6 --- /dev/null +++ b/~lukeshu/xadmaster/PKGBUILD @@ -0,0 +1,56 @@ +# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net> +# NOTE: This currently does not build. + +pkgname=xadmaster +pkgver=13.0.2006.06.21 +pkgrel=1 +pkgdesc="The port of the Amiga 'xadmaster.library' to *NIX" +arch=('i686' 'x86_64') +url="http://www.dstoecker.eu/xadmaster.html" +license=('LGPL2.1') +groups=() +depends=('glibc') +makedepends=('cvs') +provides=('libxad') +conflicts=('libxad') +replaces=() +backup=() +options=() +install= +source=() +noextract=() +md5sums=() + +_cvsroot=:pserver:anonymous@libxad.cvs.sourceforge.net:/cvsroot/libxad +_cvsmod=libxad + +build() { + cd "$srcdir" + msg "Connecting to $_cvsmod.sourceforge.net CVS server...." + + if [[ -d "$_cvsmod/CVS" ]]; then + cd "$_cvsmod" + cvs -z3 update -d + else + cvs -z3 -d "$_cvsroot" co -D "$pkgver" -f "$_cvsmod" + cd "$_cvsmod" + fi + + msg "CVS checkout done or server timeout" + msg "Starting build..." + + rm -rf "$srcdir/$_cvsmod-build" + cp -r "$srcdir/$_cvsmod" "$srcdir/$_cvsmod-build" + cd "$srcdir/$_cvsmod-build" + + # BUILD + cd portable + autoconf # FIXME: On my system this fails, I don't know what to do + ./configure --prefix=/usr + make +} + +package() { + cd "$srcdir/$_cvsmod-build" + make DESTDIR="$pkgdir/" install +} |