From d53a615fd6ab6dfeb42da11086f96698cb08fe40 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 23 Dec 2011 23:14:44 +0000 Subject: Fri Dec 23 23:14:44 UTC 2011 --- ~lukeshu/android-udev/51-android.rules | 100 +++++++++++++++++---------- ~lukeshu/android-udev/Makefile | 33 +++++++++ ~lukeshu/android-udev/PKGBUILD | 10 +-- ~lukeshu/emacs24/PKGBUILD | 82 ++++++++++++++++++++++ ~lukeshu/emacs24/emacs.install | 32 +++++++++ ~lukeshu/openni-unstable/PKGBUILD | 55 ++++++++------- ~lukeshu/openni-unstable/openni-core.install | 11 +++ ~lukeshu/openni-unstable/openni-mono.install | 7 ++ ~lukeshu/svn-graph-branches/PKGBUILD | 30 ++++++++ 9 files changed, 293 insertions(+), 67 deletions(-) create mode 100644 ~lukeshu/android-udev/Makefile create mode 100644 ~lukeshu/emacs24/PKGBUILD create mode 100644 ~lukeshu/emacs24/emacs.install create mode 100644 ~lukeshu/openni-unstable/openni-core.install create mode 100644 ~lukeshu/openni-unstable/openni-mono.install create mode 100644 ~lukeshu/svn-graph-branches/PKGBUILD (limited to '~lukeshu') diff --git a/~lukeshu/android-udev/51-android.rules b/~lukeshu/android-udev/51-android.rules index c52379309..51f80cf54 100644 --- a/~lukeshu/android-udev/51-android.rules +++ b/~lukeshu/android-udev/51-android.rules @@ -1,24 +1,23 @@ # Acer SUBSYSTEM=="usb", ATTR{idVendor}=="0502", MODE="0666", GROUP="adbusers" -# ICONIA TAB A500 +# 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" +SUBSYSTEM=="usb", ATTR{idVendor}=="0502", ATTR{idProduct}=="3325", SYMLINK+="android_fastboot" +# Liquid +SUBSYSTEM=="usb", ATTR{idVendor}=="0502", ATTR{idProduct}=="3202" +SUBSYSTEM=="usb", ATTR{idVendor}=="0502", ATTR{idProduct}=="3203", SYMLINK+="android_adb" # 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" +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" +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" +SUBSYSTEM=="usb", ATTR{idVendor}=="0b05", MODE="0666", GROUP="adbusers" # Dell SUBSYSTEM=="usb", ATTR{idVendor}=="413c", MODE="0666", GROUP="adbusers" @@ -32,13 +31,15 @@ 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}=="4e21", SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4e22", SYMLINK+="android_adb" -SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4e20", SYMLINK+="android_fastboot" +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}=="4e11", SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4e12", SYMLINK+="android_adb" SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="0fff", SYMLINK+="android_fastboot" +# Generic and unspecified debug interface +SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="d00d", SYMLINK+="android_fastboot" # HTC SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", MODE="0666", GROUP="adbusers" @@ -46,14 +47,17 @@ SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", MODE="0666", GROUP="adbusers" 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}=="0ff9", SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0c87", SYMLINK+="android_adb" SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0fff", SYMLINK+="android_fastboot" +# Desire HD +SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0ca2", 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}=="0ff9", SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0ca5", SYMLINK+="android_adb" SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0fff", SYMLINK+="android_fastboot" # HD2 @@ -61,36 +65,37 @@ SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0c02", SYMLINK+="and 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}=="0001", SYMLINK+="android_fastboot" +# Hero (GSM), Desire +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}=="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}=="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", +# Evo 4G, 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}=="0ff9", SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0c96", SYMLINK+="android_adb" -SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0fff", SYMLINK+="android_fastboot" +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}=="0ff9", SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0e03", SYMLINK+="android_adb" SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0fff", SYMLINK+="android_fastboot" -# Tatoo +# Tatoo, Dream, ADP1 , G1, Magic +SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0c01" 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}=="0ff9", SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0c91", SYMLINK+="android_adb" SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0fff", SYMLINK+="android_fastboot" # Wildfire @@ -122,8 +127,14 @@ 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" +# Ally, Vortex, P500 +SUBSYSTEM=="usb", ATTR{idVendor}=="1004", ATTR{idProduct}=="618f" +SUBSYSTEM=="usb", ATTR{idVendor}=="1004", ATTR{idProduct}=="618e", SYMLINK+="android_adb" +# Optimus One +SUBSYSTEM=="usb", ATTR{idVendor}=="1004", ATTR{idProduct}=="61c5", SYMLINK+="android_adb" +# Swift GT540 +SUBSYSTEM=="usb", ATTR{idVendor}=="1004", ATTR{idProduct}=="61b4", SYMLINK+="android_adb" + # Motorola SUBSYSTEM=="usb", ATTR{idVendor}=="22b8", MODE="0666", GROUP="adbusers" @@ -131,14 +142,14 @@ SUBSYSTEM=="usb", ATTR{idVendor}=="22b8", MODE="0666", GROUP="adbusers" SUBSYSTEM=="usb", ATTR{idVendor}=="22b8", ATTR{idProduct}=="2d66" # Defy/MB525 SUBSYSTEM=="usb", ATTR{idVendor}=="22b8", ATTR{idProduct}=="428c" -# Droid +# 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" +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" +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" @@ -178,15 +189,16 @@ SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", ATTR{idProduct}=="6601", SYMLINK+="and 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" +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}=="6877", SYMLINK+="android_fastboot" +# Galaxy Tab 10.1, i9100 S2 +SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", ATTR{idProduct}=="6860" 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" @@ -196,6 +208,18 @@ SUBSYSTEM=="usb", ATTR{idVendor}=="04dd", MODE="0666", GROUP="adbusers" # Sony Ericsson SUBSYSTEM=="usb", ATTR{idVendor}=="0fce", MODE="0666", GROUP="adbusers" +# Xperia X10 mini +SUBSYSTEM=="usb", ATTR{idVendor}=="0fce", ATTR{idProduct}=="3137" +SUBSYSTEM=="usb", ATTR{idVendor}=="0fce", ATTR{idProduct}=="2137", SYMLINK+="android_adb" +# Xperia X10 mini pro +SUBSYSTEM=="usb", ATTR{idVendor}=="0fce", ATTR{idProduct}=="3138" +SUBSYSTEM=="usb", ATTR{idVendor}=="0fce", ATTR{idProduct}=="2138", SYMLINK+="android_adb" +# Xperia X8 +SUBSYSTEM=="usb", ATTR{idVendor}=="0fce", ATTR{idProduct}=="3149" +SUBSYSTEM=="usb", ATTR{idVendor}=="0fce", ATTR{idProduct}=="2149", SYMLINK+="android_adb" +# Xperia X12 +SUBSYSTEM=="usb", ATTR{idVendor}=="0fce", ATTR{idProduct}=="e14f" +SUBSYSTEM=="usb", ATTR{idVendor}=="0fce", ATTR{idProduct}=="614f", SYMLINK+="android_adb" # Toshiba SUBSYSTEM=="usb", ATTR{idVendor}=="0930", MODE="0666", GROUP="adbusers" @@ -203,6 +227,6 @@ 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}=="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/Makefile b/~lukeshu/android-udev/Makefile new file mode 100644 index 000000000..238877f5a --- /dev/null +++ b/~lukeshu/android-udev/Makefile @@ -0,0 +1,33 @@ +# Use this to update the package from AUR. + +default: PHONY all +all: PHONY 51-android.rules PKGBUILD + +name=android-udev + +aur: + mkdir $@ +aur/%.tar.gz: | aur + cd aur && wget http://aur.archlinux.org/packages/$*/$*.tar.gz +aur/%: aur/%.tar.gz + cd aur && tar xzf $(notdir $<) +aur/$(name)/%: aur/$(name).tar.gz | aur/$(name) + test -f $@ && touch $@ + +51-android.rules: aur/$(name)/51-android.rules + sed -r 's/\s+$$//' < $< > $@ + +PKGBUILD: aur/$(name)/PKGBUILD 51-android.rules + # Update pkg{ver,rel} + ver=`grep -m1 pkgver= $<` ; sed -i "s/pkgver=.*/$$ver/" $@ + rel=`grep -m1 pkgrel= $<`.1; sed -i "s/pkgrel=.*/$$rel/" $@ + # Update md5sums + sed -i '/md5sums/,$$d' $@ + makepkg -g >> $@ + +clean: PHONY + rm -rf aur +maintainerclean: PHONY clean + rm -f 51-android.rules + +.PHONY: PHONY FORCE diff --git a/~lukeshu/android-udev/PKGBUILD b/~lukeshu/android-udev/PKGBUILD index dabb611c9..6900b46da 100644 --- a/~lukeshu/android-udev/PKGBUILD +++ b/~lukeshu/android-udev/PKGBUILD @@ -3,8 +3,8 @@ # Contributor: marlock pkgname=android-udev -pkgver=0.7 -pkgrel=3.1 +pkgver=0.8 +pkgrel=1.1 pkgdesc='Udev rules to for Android devices.' arch=('any') url="http://developer.android.com/guide/developing/device.html" @@ -15,8 +15,8 @@ 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 + install -d "$pkgdir/etc/udev/rules.d" + install -m644 "$srcdir/51-android.rules" "$pkgdir/etc/udev/rules.d/51-android.rules" } -md5sums=('bfcd8d0e4c5bdeed0973e102a656e1eb') +md5sums=('909eb7629683efae838c6e9d65966b3b') diff --git a/~lukeshu/emacs24/PKGBUILD b/~lukeshu/emacs24/PKGBUILD new file mode 100644 index 000000000..00f90b16a --- /dev/null +++ b/~lukeshu/emacs24/PKGBUILD @@ -0,0 +1,82 @@ +# $Id: PKGBUILD 137977 2011-09-13 15:26:07Z juergen $ +# Maintainer: Juergen Hoetzel +# Contributor: Renchi Raju +pkgname=emacs24-bzr +_majorver=24.0.92 +pkgver=106675 +pkgrel=4 +pkgdesc="The extensible, customizable, self-documenting real-time display editor" +arch=('i686' 'x86_64') +url="http://www.gnu.org/software/emacs/emacs.html" +license=('GPL3') +depends=('librsvg' 'gpm' 'giflib' 'libxpm' 'gtk2' 'hicolor-icon-theme' 'gconf' 'desktop-file-utils' 'alsa-lib') +install=emacs.install +source=(emacs.desktop) +md5sums=() + +_bzrtrunk=bzr://bzr.savannah.gnu.org/emacs/trunk +_bzrmod=$pkgname + +build() { + cd "$srcdir" + msg "Connecting to Bazaar server...." + + if [[ -d "$_bzrmod" ]]; then + cd "$_bzrmod" && bzr --no-plugins pull "$_bzrtrunk" -r "$pkgver" + msg "The local files are updated." + else + bzr --no-plugins branch "$_bzrtrunk" "$_bzrmod" -q -r "$pkgver" + fi + + msg "Bazaar checkout done or server timeout" + msg "Starting build..." + + rm -rf "$srcdir/$_bzrmod-$_majorver" + cp -r "$srcdir/$_bzrmod" "$srcdir/$_bzrmod-$_majorver" + + cd "$srcdir"/$pkgname-$_majorver + ./autogen.sh + ./configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib \ + --localstatedir=/var --with-x-toolkit=gtk --with-xft + make +} + +package() { + provides=("emacs=${_majorver}a") + + cd "$srcdir"/$pkgname-$_majorver + make DESTDIR="$pkgdir" install + + # remove conflict with ctags package + mv "$pkgdir"/usr/bin/{ctags,ctags.emacs} + mv "$pkgdir"/usr/share/man/man1/{ctags,ctags.emacs}.1.gz + # fix all the 777 perms on directories + find "$pkgdir"/usr/share/emacs/$_majorver -type d -exec chmod 755 {} \; + # fix user/root permissions on usr/share files + find "$pkgdir"/usr/share/emacs/$_majorver -exec chown root:root {} \; + # fix perms on /var/games + chmod 775 "$pkgdir"/var/games + chmod 775 "$pkgdir"/var/games/emacs + chmod 664 "$pkgdir"/var/games/emacs/* + chown -R root:games "$pkgdir"/var/games + + # fix FS#9253 + mkdir -p "$pkgdir"/usr/share/pixmaps + ln -s $pkgdir../emacs/$_majorver/etc/images/icons/hicolor/48x48/apps/emacs.png "$pkgdir"/usr/share/pixmaps/emacs-icon.png + + # This is done down here to help future-proof the above + rm "$pkgdir"/usr/bin/emacs + mv "$pkgdir"/usr/share/man/man1/emacs{,-$_majorver}.1.gz + for prog in ctags.emacs ebrowse emacsclient etags grep-changelog rcs-checkin; do + mv "$pkgdir"/usr/bin/$prog{,-$_majorver} + mv "$pkgdir"/usr/share/man/man1/$prog{,-24}.1.gz + done + mv "$pkgdir"/usr/share/applications/emacs{,24}.desktop + mv "$pkgdir"/usr/share/emacs/site-lisp/subdirs{,.emacs24}.el + rm "$pkgdir"/usr/share/info/dir + for file in "$pkgdir"/usr/share/pixmaps/emacs-icon.png `find "$pkgdir"/usr/share/{icons,info} -type f`; do + mv "$file" "`echo "$file"|sed 's/\..*/-24&/'`" + done + ln -s "$_majorver" "$pkgdir"/usr/share/emacs/24 + rm "$pkgdir"/var/games/emacs/* +} diff --git a/~lukeshu/emacs24/emacs.install b/~lukeshu/emacs24/emacs.install new file mode 100644 index 000000000..d84f1de14 --- /dev/null +++ b/~lukeshu/emacs24/emacs.install @@ -0,0 +1,32 @@ +ICON_PATH=usr/share/icons/hicolor +INFO_DIR=usr/share/info + +INFO_FILES=(ada-mode auth autotype calc ccmode cl dbus dired-x ebrowse +ede ediff edt efaq eieio eintr elisp emacs emacs-mime epa erc eshell eudc flymake +forms gnus idlwave info mairix-el message mh-e newsticker nxml-mode +org pcl-cvs pgg rcirc reftex remember sasl sc semantic ses sieve smtpmail +speedbar tramp url vip viper widget woman) + +post_install() { + gtk-update-icon-cache -q -t -f ${ICON_PATH} + update-desktop-database -q + + [[ -x usr/bin/install-info ]] || return 0 + for f in ${INFO_FILES[@]}; do + install-info ${INFO_DIR}/$f.gz ${INFO_DIR}/dir 2> /dev/null + done +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + gtk-update-icon-cache -q -t -f ${ICON_PATH} + update-desktop-database -q + + [[ -x usr/bin/install-info ]] || return 0 + for f in ${INFO_FILES[@]}; do + install-info --delete ${INFO_DIR}/$f.gz ${INFO_DIR}/dir 2> /dev/null + done +} diff --git a/~lukeshu/openni-unstable/PKGBUILD b/~lukeshu/openni-unstable/PKGBUILD index 32020d726..19d1575a1 100644 --- a/~lukeshu/openni-unstable/PKGBUILD +++ b/~lukeshu/openni-unstable/PKGBUILD @@ -21,24 +21,23 @@ pkgname=( openni$_suf-java-samples openni$_suf-java-samples-source ) -pkgver=1.3.4.6 -pkgrel=4 +pkgver=1.4.0.2 +pkgrel=1 arch=('i686' 'x86_64') url="http://www.openni.org/" license=('GPL') makedepends=('git' 'doxygen' 'graphviz') +options+=('!strip') 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;; +'x86_64') _arch=x64;; 'i686') _arch=x86;; 'arm') _arch=Arm;; # untested *) _arch=UNSUPPORTED_ARCH;; @@ -51,27 +50,32 @@ build() { cd "${srcdir}" msg "Connecting to GIT server...." - if [ -d ${_gitname} ] ; then + #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 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..." + msg "Starting build..." - rm -rf "${srcdir}/${_gitname}-build" - git clone "${srcdir}/${_gitname}" "${srcdir}/${_gitname}-build" + #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" + + for sample in NiViewer NiSimpleViewer NiUserTracker NiUserSelection NiHandTracker; do + echo 'USED_LIBS += GL' >> "Platform/${_os}/Build/Samples/${sample}/Makefile" + done + echo ' abs_core: $(ALL_MODULES) $(ALL_UTILS) abs_core_samples: $(CORE_SAMPLES) @@ -87,7 +91,9 @@ abs_mono_samples: $(MONO_SAMPLES) $(MONO_FORMS_SAMPLES) make -j1 \ abs_core abs_core_samples \ abs_java abs_java_samples \ - abs_mono abs_mono_samples || return 1 + abs_mono abs_mono_samples + cd "../Bin/${_arch}-Release" + ln NiViewer Sample-NiViewer cd '../../../Source/DoxyGen' mkdir html @@ -117,7 +123,7 @@ package_openni-unstable-docs() { package_openni-unstable-core() { pkgdesc="OpenNI core libraries" depends=('libusb' 'freeglut') - install="openni.install" + install="openni-core.install" provides=('openni-core') conflicts=('openni-core') @@ -144,6 +150,8 @@ package_openni-unstable-core() { cd "${srcdir}/${_gitname}-build/Platform/${_os}/Build" install -d "${pkgdir}/usr/share" cp -r Common "${pkgdir}/usr/share/common" + + install -d "${pkgdir}/var/lib/ni" } package_openni-unstable-java() { @@ -164,6 +172,7 @@ package_openni-unstable-java() { package_openni-unstable-mono() { pkgdesc="OpenNI mono wrapper" depends=("openni$_suf" 'mono') + install="openni-mono.install" provides=('openni-mono') conflicts=('openni-mono') @@ -183,14 +192,16 @@ _install_sample_source() { install -m644 "$makefile" "${pkgdir}/usr/share/openni/samples/$sample" } -# Leave out NiViewer, it's set up wrong CORE_SAMPLES=' AudioSample BackRecorder CRead ConvertXToONI + HandTracker RecordSynthetic SimpleCreate + UserSelection + Viewer SimpleRead SimpleViewer UserTracker' MONO_SAMPLES='SimpleRead SimpleViewer UserTracker' JAVA_SAMPLES='SimpleRead SimpleViewer UserTracker' @@ -204,9 +215,8 @@ package_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" + install -m755 Sample-Ni$sample "${pkgdir}/usr/bin/niSample-$sample" done } package_openni-unstable-core-samples-source() { @@ -214,7 +224,6 @@ package_openni-unstable-core-samples-source() { 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 @@ -246,7 +255,6 @@ package_openni-unstable-java-samples-source() { 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 @@ -278,7 +286,6 @@ package_openni-unstable-mono-samples-source() { 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 diff --git a/~lukeshu/openni-unstable/openni-core.install b/~lukeshu/openni-unstable/openni-core.install new file mode 100644 index 000000000..8470f4512 --- /dev/null +++ b/~lukeshu/openni-unstable/openni-core.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/openni-mono.install b/~lukeshu/openni-unstable/openni-mono.install new file mode 100644 index 000000000..72a6fb23d --- /dev/null +++ b/~lukeshu/openni-unstable/openni-mono.install @@ -0,0 +1,7 @@ +post_install() { + gacutil -i /usr/share/openni/mono/OpenNI.net.dll -gacdir /usr +} + +post_remove() { + gacutil -u OpenNI.net -gacdir /usr +} diff --git a/~lukeshu/svn-graph-branches/PKGBUILD b/~lukeshu/svn-graph-branches/PKGBUILD new file mode 100644 index 000000000..63568e50c --- /dev/null +++ b/~lukeshu/svn-graph-branches/PKGBUILD @@ -0,0 +1,30 @@ +# Maintainer: Luke Shumaker + +pkgname=svn-graph-branches +pkgver=0.10 +pkgrel=1 +pkgdesc="Parses the Subversion log of a repository to generate a graph of the important events of the project." +arch=('any') +url="https://code.google.com/p/svn-graph-branches/" +license=('GPL') +depends=('subversion' 'graphviz' 'java-environment') +makedepends=('sharutils') +source=(https://svn-graph-branches.googlecode.com/files/$pkgname-$pkgver.tar.gz) +sha1sums=('c8b85b57b7725bc869f792334505d36d527e1dea') + +build() { + cd "$srcdir/$pkgname-$pkgver" + export CLASSPATH=`pwd` + ./configure --prefix=/usr + make +} + +check() { + cd "$srcdir/$pkgname-$pkgver" + make -k check +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + make DESTDIR="$pkgdir/" install +} -- cgit v1.2.3-54-g00ecf From e39d5f838c08b5b57eae4c1aec4ae00acd18b239 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 25 Dec 2011 23:14:50 +0000 Subject: Sun Dec 25 23:14:50 UTC 2011 --- community/darktable/PKGBUILD | 8 +- community/gambas3/PKGBUILD | 8 +- community/i3-wm/PKGBUILD | 12 +- community/lxpanel/PKGBUILD | 20 +- community/lxpanel/battery.patch | 72 +++++++ community/pingus/PKGBUILD | 10 +- community/tcpreplay/PKGBUILD | 28 +++ extra/botan/PKGBUILD | 6 +- extra/gcin/PKGBUILD | 8 +- extra/gcin/qt4-lib64.patch | 26 +-- extra/libmythes/PKGBUILD | 8 +- extra/libxi/PKGBUILD | 6 +- extra/rxvt-unicode/ChangeLog | 3 + extra/rxvt-unicode/PKGBUILD | 10 +- multilib/lib32-libxi/PKGBUILD | 6 +- ~lukeshu/git-svn-abandon-git/PKGBUILD | 51 +++++ ~lukeshu/make-graph/PKGBUILD | 64 ++++++ ~lukeshu/make-graph/bug30612.patch | 66 ++++++ ~lukeshu/make-graph/bug30723.patch | 12 ++ ~lukeshu/make-graph/make-3.82-makeflags.patch | 36 ++++ ~lukeshu/make-graph/make-3.82-sort-blank.patch | 17 ++ ~lukeshu/make-graph/make-graph.patch | 273 +++++++++++++++++++++++++ ~lukeshu/make-graph/make.install | 20 ++ ~lukeshu/redo/PKGBUILD | 36 ++++ ~lukeshu/stow/PKGBUILD | 24 +++ ~lukeshu/terminal-colors/PKGBUILD | 23 +++ ~lukeshu/thingutils-git/PKGBUILD | 55 +++++ ~lukeshu/wdiff/PKGBUILD | 29 +++ 28 files changed, 877 insertions(+), 60 deletions(-) create mode 100644 community/lxpanel/battery.patch create mode 100644 community/tcpreplay/PKGBUILD create mode 100644 ~lukeshu/git-svn-abandon-git/PKGBUILD create mode 100644 ~lukeshu/make-graph/PKGBUILD create mode 100644 ~lukeshu/make-graph/bug30612.patch create mode 100644 ~lukeshu/make-graph/bug30723.patch create mode 100644 ~lukeshu/make-graph/make-3.82-makeflags.patch create mode 100644 ~lukeshu/make-graph/make-3.82-sort-blank.patch create mode 100644 ~lukeshu/make-graph/make-graph.patch create mode 100644 ~lukeshu/make-graph/make.install create mode 100644 ~lukeshu/redo/PKGBUILD create mode 100644 ~lukeshu/stow/PKGBUILD create mode 100644 ~lukeshu/terminal-colors/PKGBUILD create mode 100644 ~lukeshu/thingutils-git/PKGBUILD create mode 100644 ~lukeshu/wdiff/PKGBUILD (limited to '~lukeshu') diff --git a/community/darktable/PKGBUILD b/community/darktable/PKGBUILD index a6223c843..04e856aa9 100644 --- a/community/darktable/PKGBUILD +++ b/community/darktable/PKGBUILD @@ -1,4 +1,4 @@ -# $Id: PKGBUILD 58992 2011-11-20 19:44:35Z spupykin $ +# $Id: PKGBUILD 61213 2011-12-24 17:41:33Z spupykin $ # Maintainer: Sergej Pupykin # Maintainer: Christian Himpel # Contributor: Johannes Hanika @@ -6,16 +6,16 @@ pkgname=darktable pkgver=0.9.3 _pkgver=0.9 -pkgrel=3 +pkgrel=4 pkgdesc="Utility to organize and develop raw images" arch=('i686' 'x86_64') url=http://darktable.sf.net/ license=('GPL3') depends=('exiv2>=0.18' 'intltool>=0.40' 'lcms2' 'lensfun>=0.2.3' 'libglade' 'dbus-glib' 'curl' 'libgnome-keyring' 'libgphoto2' 'libusb-compat' 'openexr' 'sqlite3') -makedepends=('intltool>=0.40' 'cmake') +makedepends=('intltool>=0.40' 'cmake' 'librsvg') # 'gnome-doc-utils' 'libxslt' 'fop') -optdepends=( 'librsvg') +optdepends=('librsvg') install=darktable.install options=(!libtool) source=(http://downloads.sourceforge.net/project/darktable/darktable/${_pkgver}/darktable-$pkgver.tar.gz) diff --git a/community/gambas3/PKGBUILD b/community/gambas3/PKGBUILD index 1f27e0911..56f8ef5a5 100644 --- a/community/gambas3/PKGBUILD +++ b/community/gambas3/PKGBUILD @@ -1,4 +1,4 @@ -# $Id: PKGBUILD 61105 2011-12-21 20:56:54Z andrea $ +# $Id: PKGBUILD 61221 2011-12-24 21:45:52Z lcarlier $ # Maintainer: Laurent Carlier pkgbase=gambas3 @@ -12,8 +12,8 @@ pkgname=('gambas3-runtime' 'gambas3-devel' 'gambas3-ide' 'gambas3-script' 'gamba 'gambas3-gb-pdf' 'gambas3-gb-qt4' 'gambas3-gb-qt4-ext' 'gambas3-gb-qt4-opengl' 'gambas3-gb-qt4-webkit' 'gambas3-gb-report' 'gambas3-gb-sdl' 'gambas3-gb-sdl-sound' 'gambas3-gb-settings' 'gambas3-gb-signal' 'gambas3-gb-v4l' 'gambas3-gb-vb' 'gambas3-gb-xml' 'gambas3-gb-xml-rpc' 'gambas3-gb-xml-xslt' 'gambas3-gb-web') -pkgver=2.99.6 -pkgrel=5 +pkgver=2.99.7 +pkgrel=1 pkgdesc="A free development environment based on a Basic interpreter." arch=('i686' 'x86_64') url="http://gambas.sourceforge.net/" @@ -27,7 +27,7 @@ makedepends=('intltool' 'mysql' 'postgresql' 'libffi' 'bzip2' 'glib2' 'v4l-utils options=('!emptydirs' '!makeflags') source=("http://downloads.sourceforge.net/gambas/${pkgbase}-${pkgver}.tar.bz2" 'gambas3-script.install' 'gambas3-runtime.install') -md5sums=('746aaae5494c4b267bdae802c5c006d5' +md5sums=('674f73cd7d4d37b3c62a4b9261dadb5d' 'b284be39d147ec799f1116a6abc068b4' 'b5cc403990f31b8ea1c5cf37366d3d29') diff --git a/community/i3-wm/PKGBUILD b/community/i3-wm/PKGBUILD index 9a779ab44..57e3065dc 100644 --- a/community/i3-wm/PKGBUILD +++ b/community/i3-wm/PKGBUILD @@ -1,10 +1,10 @@ -# $Id: PKGBUILD 60124 2011-12-05 19:50:21Z ibiru $ +# $Id: PKGBUILD 61211 2011-12-24 17:06:50Z ttopper $ # Maintainer: Thorsten Töpper pkgname=i3-wm _pkgsourcename=i3 -pkgver=4.1 -pkgrel=2 +pkgver=4.1.1 +pkgrel=1 pkgdesc="An improved dynamic tiling window manager" arch=('i686' 'x86_64') url="http://i3wm.org/" @@ -19,13 +19,13 @@ optdepends=('rxvt-unicode: The terminal emulator used in the default config.' 'i3status: To display systeminformation with a bar.' 'perl: To migrate your configuration to v4 format.') options=('docs' '!strip') -source=(http://i3wm.org/downloads/${_pkgsourcename}-${pkgver}.tar.bz2) -md5sums=('1a05d605624506c2b4b9f1272fd84a5a') +source=("http://i3wm.org/downloads/${_pkgsourcename}-${pkgver}.tar.bz2") +md5sums=('25bc29349b65000a2b0afc0655a80035') build() { cd "$srcdir/$_pkgsourcename-$pkgver" - # To avoid problems with bison use only a single process + # In order to avoid problems with bison use only a single process MAKEFLAGS="-j1" make } diff --git a/community/lxpanel/PKGBUILD b/community/lxpanel/PKGBUILD index 802c2e2fa..e4c3a5440 100644 --- a/community/lxpanel/PKGBUILD +++ b/community/lxpanel/PKGBUILD @@ -1,22 +1,26 @@ -# $Id: PKGBUILD 53158 2011-07-31 08:25:21Z angvp $ -# Maintainer: Angel Velasquez -# Maintainer: Juergen Hoetzel +# $Id: PKGBUILD 61193 2011-12-24 11:33:27Z bpiotrowski $ +# Maintainer: Bartłomiej Piotrowski +# Contributor: Angel Velasquez +# Contributor: Juergen Hoetzel pkgname=lxpanel pkgver=0.5.8 -pkgrel=1 +pkgrel=2 pkgdesc="Panel of the LXDE Desktop" arch=('i686' 'x86_64') license=('GPL2') url="http://lxde.org/" groups=('lxde') depends=('gtk2' 'alsa-lib' 'menu-cache' 'lxmenu-data') -source=(http://downloads.sourceforge.net/lxde/${pkgname}-${pkgver}.tar.gz) +source=(http://downloads.sourceforge.net/lxde/${pkgname}-${pkgver}.tar.gz + battery.patch) optdepends=(pcmanfm) -md5sums=('129fae75d1cd3983fd94542c573a70a1') build() { cd "$srcdir/$pkgname-$pkgver" + + patch -Np1 -i "$srcdir/battery.patch" + ./configure --sysconfdir=/etc --prefix=/usr make } @@ -25,3 +29,7 @@ package() { cd "$srcdir/$pkgname-$pkgver" make DESTDIR="$pkgdir" install } +md5sums=('129fae75d1cd3983fd94542c573a70a1' + '5fadb4d5aca09c81138677e91f995d98') +md5sums=('129fae75d1cd3983fd94542c573a70a1' + '5fadb4d5aca09c81138677e91f995d98') diff --git a/community/lxpanel/battery.patch b/community/lxpanel/battery.patch new file mode 100644 index 000000000..5d701ea6d --- /dev/null +++ b/community/lxpanel/battery.patch @@ -0,0 +1,72 @@ +diff --git plugins/batt/batt_sys.c plugins/batt/batt_sys.c +index 54ff678..1eebab5 100644 +--- a/src/plugins/batt/batt_sys.c ++++ b/src/plugins/batt/batt_sys.c +@@ -35,15 +35,6 @@ + #include + #include + +-battery* battery_new() { +- static int battery_num = 1; +- battery * b = g_new0 ( battery, 1 ); +- battery_reset(b); +- b->battery_num = battery_num; +- battery_num++; +- return b; +-} +- + void battery_reset( battery * b) { + b->type_battery = TRUE; + b->capacity_unit = "mAh"; +@@ -58,6 +49,15 @@ void battery_reset( battery * b) { + b->state = NULL; + } + ++battery* battery_new() { ++ static int battery_num = 1; ++ battery * b = g_new0 ( battery, 1 ); ++ battery_reset(b); ++ b->battery_num = battery_num; ++ battery_num++; ++ return b; ++} ++ + static gchar* parse_info_file(char *filename) + { + char *buf = NULL; +@@ -194,7 +194,7 @@ void battery_update( battery *b ) { + + /* convert energy values (in mWh) to charge values (in mAh) if needed and possible */ + if (b->last_capacity_unit != -1 && b->last_capacity == -1) { +- if (b->voltage != -1) { ++ if (b->voltage > 0) { + b->last_capacity = b->last_capacity_unit * 1000 / b->voltage; + } else { + b->last_capacity = b->last_capacity_unit; +@@ -202,7 +202,7 @@ void battery_update( battery *b ) { + } + } + if (b->design_capacity_unit != -1 && b->design_capacity == -1) { +- if (b->voltage != -1) { ++ if (b->voltage > 0) { + b->design_capacity = b->design_capacity_unit * 1000 / b->voltage; + } else { + b->design_capacity = b->design_capacity_unit; +@@ -210,7 +210,7 @@ void battery_update( battery *b ) { + } + } + if (b->remaining_energy != -1 && b->remaining_capacity == -1) { +- if (b->voltage != -1) { ++ if (b->voltage > 0) { + b->remaining_capacity = b->remaining_energy * 1000 / b->voltage; + b->present_rate = b->present_rate * 1000 / b->voltage; + } else { +@@ -220,7 +220,7 @@ void battery_update( battery *b ) { + if (b->last_capacity < MIN_CAPACITY) + b->percentage = 0; + else +- b->percentage = ((float) b->remaining_energy * 100.0) / (float) b->last_capacity_unit; ++ b->percentage = (float) b->remaining_capacity * 100 / b->last_capacity; + + if (b->percentage > 100) + b->percentage = 100; diff --git a/community/pingus/PKGBUILD b/community/pingus/PKGBUILD index 1e0509d49..63c876fb9 100644 --- a/community/pingus/PKGBUILD +++ b/community/pingus/PKGBUILD @@ -1,9 +1,9 @@ -# $Id: PKGBUILD 59956 2011-12-02 21:00:04Z ibiru $ +# $Id: PKGBUILD 61223 2011-12-24 23:23:29Z lcarlier $ # Maintainer: Eric Belanger pkgname=pingus -pkgver=0.7.5 -pkgrel=2 +pkgver=0.7.6 +pkgrel=1 pkgdesc="A Lemmings clone, i.e. a level-based puzzle game." arch=('i686' 'x86_64') url="http://pingus.seul.org" @@ -11,9 +11,9 @@ license=('GPL') depends=('sdl_image' 'sdl_mixer' 'libgl' 'boost-libs>=1.48') makedepends=('scons' 'boost>=1.48' 'mesa') source=(http://pingus.googlecode.com/files/${pkgname}-${pkgver}.tar.bz2 pingus.desktop) -md5sums=('68e0bd1327e0eedcaab64d64528540ba' +md5sums=('561798686f34d3fa4e69135d655f47ac' '9eec34047bdcff49e08f41e81764e20c') -sha1sums=('65493f9c9914bb401dbcfe1fe6bf2fad2388b755' +sha1sums=('b5f5a25d71beb197c9466fb8928018a377f56487' '579a1144f161ce89e6e024cea37210149b89c0c0') build() { diff --git a/community/tcpreplay/PKGBUILD b/community/tcpreplay/PKGBUILD new file mode 100644 index 000000000..054c87d7e --- /dev/null +++ b/community/tcpreplay/PKGBUILD @@ -0,0 +1,28 @@ +# $Id: PKGBUILD 61217 2011-12-24 18:01:44Z tredaelli $ +# Maintainer: Timothy Redaelli +# Contributor: Sébastien Duquette +# Contributor: Dawid Wrobel +pkgname=tcpreplay +pkgver=3.4.4 +pkgrel=3 +pkgdesc="Gives the ability to replay previously captured traffic in a libpcap format" +url="http://tcpreplay.synfin.net" +arch=('i686' 'x86_64') +license=('GPL3') +depends=('libpcap' 'libdnet') +makedepends=('tcpdump') +optdepends=('tcpdump: decoding of packets support') +options=('!emptydirs') +source=("http://downloads.sourceforge.net/sourceforge/tcpreplay/${pkgname}-${pkgver}.tar.gz") +md5sums=('22725feb9b2590809f9350308ec65180') + +build() { + cd "$srcdir/$pkgname-$pkgver" + ./configure --prefix=/usr --enable-dynamic-link --with-tcpdump=/usr/sbin/tcpdump + make +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + make DESTDIR="$pkgdir/" install +} diff --git a/extra/botan/PKGBUILD b/extra/botan/PKGBUILD index 2d05b70e8..525f79992 100644 --- a/extra/botan/PKGBUILD +++ b/extra/botan/PKGBUILD @@ -1,9 +1,9 @@ -# $Id: PKGBUILD 128341 2011-06-23 05:31:14Z angvp $ +# $Id: PKGBUILD 145616 2011-12-24 05:45:52Z angvp $ # Maintainer: Angel Velasquez # Contributor: Douglas Soares de Andrade # Contributor: d'Ronin pkgname=botan -pkgver=1.10.0 +pkgver=1.10.1 pkgrel=1 pkgdesc="BSD-licensed crypto library written in C++" license=('BSD') @@ -12,7 +12,7 @@ url="http://botan.randombit.net/" depends=('gcc-libs' 'sh') makedepends=('python2') source=(http://files.randombit.net/botan/Botan-${pkgver}.tgz) -md5sums=('1f03a6a84f402a12e50665868dddae99') +md5sums=('5e1e7f3458e2e6aa56f7e41941eefb9d') build() { cd ${srcdir}/Botan-${pkgver} diff --git a/extra/gcin/PKGBUILD b/extra/gcin/PKGBUILD index bd344fc5a..68698540a 100644 --- a/extra/gcin/PKGBUILD +++ b/extra/gcin/PKGBUILD @@ -1,10 +1,10 @@ -# $Id: PKGBUILD 145112 2011-12-17 04:54:41Z bisson $ +# $Id: PKGBUILD 145630 2011-12-24 17:43:03Z bisson $ # Maintainer: Gaetan Bisson # Contributor: Andreas Radke # Contributor: damir pkgname=gcin -pkgver=2.6.0 +pkgver=2.6.6 pkgrel=1 pkgdesc='Input method server supporting various input methods' url='http://hyperrate.com/dir.php?eid=67' @@ -18,8 +18,8 @@ optdepends=('qt: support for qt4 input method' 'libchewing: support for chewing input method') source=("http://www.csie.nctu.edu.tw/~cp76/gcin/download/${pkgname}-${pkgver}.tar.xz" 'qt4-lib64.patch') -sha1sums=('4abef8d37492b68d54ba40420f65d04779ee2ec5' - '4b121e9a86a2ca25869c69b7d4d9623a0c8f55fc') +sha1sums=('ef2ba1af83ce5f25cf54a7d3e84a5739d3a9e5e0' + '3d1b769dcd8820c8351f239ec32ee5bcd9d98b70') install=install diff --git a/extra/gcin/qt4-lib64.patch b/extra/gcin/qt4-lib64.patch index abc15950e..c47248beb 100644 --- a/extra/gcin/qt4-lib64.patch +++ b/extra/gcin/qt4-lib64.patch @@ -1,6 +1,6 @@ diff -aur old/configure new/configure ---- old/configure 2011-11-07 06:51:12.000000000 +1100 -+++ new/configure 2011-11-25 14:02:10.819256960 +1100 +--- old/configure 2011-12-21 00:48:03.000000000 +1100 ++++ new/configure 2011-12-25 04:06:14.424317251 +1100 @@ -188,7 +188,7 @@ @@ -10,9 +10,18 @@ diff -aur old/configure new/configure echo "testing if you have qt4 support" pkg-config --libs QtCore QtGui > /dev/null 2> /dev/null if [ $? = 0 ]; then +@@ -245,7 +245,7 @@ + mv gcin.spec gcin.spec.tmp + grep -v qt4/plugins/inputmethods gcin.spec.tmp > gcin.spec + else +- for i in /usr/share/qt4/bin/moc /usr/lib/qt4/bin/moc /usr/lib64/qt4/bin/moc ++ for i in /usr/share/qt4/bin/moc /usr/lib/qt4/bin/moc /usr/lib64/qt4/bin/moc /usr/bin/moc + do + [ -x $i ] && QT4_MOC=$i + done diff -aur old/qt4-im/Makefile new/qt4-im/Makefile ---- old/qt4-im/Makefile 2011-06-08 23:03:50.000000000 +1000 -+++ new/qt4-im/Makefile 2011-11-25 14:05:28.844110772 +1100 +--- old/qt4-im/Makefile 2011-12-19 14:52:46.000000000 +1100 ++++ new/qt4-im/Makefile 2011-12-25 04:06:14.424317251 +1100 @@ -1,5 +1,5 @@ include ../config.mak -QT=qt4 @@ -20,12 +29,3 @@ diff -aur old/qt4-im/Makefile new/qt4-im/Makefile QTIM=$(QT)/plugins/inputmethods IMMODULES=$(libdir)/$(QTIM) -@@ -15,7 +15,7 @@ - $(CXX) -E $(CFLAGS) $(INCS) $< > $@ - - moc_gcin-qt.cpp: gcin-qt.h -- /usr/$(LIB)/$(QT)/bin/moc $< -o moc_gcin-qt.cpp -+ /usr/bin/moc $< -o moc_gcin-qt.cpp - - im-gcin.so: $(OBJS) - export LD_RUN_PATH=$(gcinlibdir) ;\ diff --git a/extra/libmythes/PKGBUILD b/extra/libmythes/PKGBUILD index 0383c549e..e9debcd72 100644 --- a/extra/libmythes/PKGBUILD +++ b/extra/libmythes/PKGBUILD @@ -1,9 +1,9 @@ -# $Id: PKGBUILD 144883 2011-12-08 21:25:55Z andyrtr $ +# $Id: PKGBUILD 145626 2011-12-24 14:41:49Z andyrtr $ # Maintainer: AndyRTR pkgname=libmythes -pkgver=1.2.1 -pkgrel=2 +pkgver=1.2.2 +pkgrel=1 epoch=1 pkgdesc="a simple thesaurus" arch=('i686' 'x86_64') @@ -14,7 +14,7 @@ makedepends=('hunspell') options=('!libtool') provides=('mythes') source=(http://downloads.sourceforge.net/hunspell/${pkgname/lib/}-${pkgver}.tar.gz) -md5sums=('54b310488dda6929cf31ae859928c945') +md5sums=('e1e255dc43dbcbb34cb19e8a0eba90ae') build() { cd ${srcdir}/${pkgname/lib/}-$pkgver diff --git a/extra/libxi/PKGBUILD b/extra/libxi/PKGBUILD index 05897b97f..b195dfce8 100644 --- a/extra/libxi/PKGBUILD +++ b/extra/libxi/PKGBUILD @@ -1,8 +1,8 @@ -# $Id: PKGBUILD 145122 2011-12-17 08:47:23Z andyrtr $ +# $Id: PKGBUILD 145628 2011-12-24 14:44:56Z andyrtr $ # Maintainer: Jan de Groot pkgname=libxi -pkgver=1.4.4 +pkgver=1.4.5 pkgrel=1 pkgdesc="X11 Input extension library" arch=('i686' 'x86_64') @@ -12,7 +12,7 @@ makedepends=('pkgconfig' 'xorg-util-macros') options=(!libtool) license=('custom') source=(${url}/releases/individual/lib/libXi-${pkgver}.tar.bz2) -sha1sums=('e4ca1b45368214ba246bfad398ea087125c79f31') +sha1sums=('8ac24dec8e488f49fd6a6b256c815da9ceec9737') build() { cd "${srcdir}/libXi-${pkgver}" diff --git a/extra/rxvt-unicode/ChangeLog b/extra/rxvt-unicode/ChangeLog index a374f7b27..f343b86cb 100644 --- a/extra/rxvt-unicode/ChangeLog +++ b/extra/rxvt-unicode/ChangeLog @@ -1,3 +1,6 @@ +2011-12-02 Angel Velasquez + * Version bump to 9.14 + 2011-12-02 Angel Velasquez * Moved perl from optdepend to depend (closes FS#25782) diff --git a/extra/rxvt-unicode/PKGBUILD b/extra/rxvt-unicode/PKGBUILD index 40571e181..2d2a89d30 100644 --- a/extra/rxvt-unicode/PKGBUILD +++ b/extra/rxvt-unicode/PKGBUILD @@ -1,11 +1,11 @@ -# $Id: PKGBUILD 144079 2011-12-03 04:45:00Z angvp $ +# $Id: PKGBUILD 145618 2011-12-24 05:53:53Z angvp $ # Maintainer: Angel Velasquez # Contributor: tobias # Contributor: dibblethewrecker dibblethewrecker.at.jiwe.dot.org pkgname=rxvt-unicode -pkgver=9.12 -pkgrel=2 +pkgver=9.14 +pkgrel=1 pkgdesc="An unicode enabled rxvt-clone terminal emulator (urxvt)" arch=('i686' 'x86_64') url="http://software.schmorp.de/pkg/rxvt-unicode.html" @@ -15,9 +15,9 @@ optdepends=('gtk2-perl: to use the urxvt-tabbed') changelog=ChangeLog source=(http://dist.schmorp.de/rxvt-unicode/${pkgname}-${pkgver}.tar.bz2 \ ${pkgname}.desktop) -md5sums=('945af37d661c8c45a7cac292160e7c70' +md5sums=('022235a9a8b012c29e72c49177be6ce4' '3de6c13126a45bc3bc9f6bba077a1311') -sha1sums=('4cbf0516b8304dfb041b9f3e5aaba662fee4b979' +sha1sums=('e303b7591225b06bc04e18a875461438c635014e' '962aebc88982dbeb62a7c4a051ff567e015f61a0') build() { diff --git a/multilib/lib32-libxi/PKGBUILD b/multilib/lib32-libxi/PKGBUILD index f8e99e866..c4ad68595 100644 --- a/multilib/lib32-libxi/PKGBUILD +++ b/multilib/lib32-libxi/PKGBUILD @@ -1,9 +1,9 @@ -# $Id: PKGBUILD 60951 2011-12-19 19:03:45Z bluewind $ +# $Id: PKGBUILD 61219 2011-12-24 18:33:43Z bluewind $ # Maintainer: Jan de Groot _pkgbasename=libxi pkgname=lib32-$_pkgbasename -pkgver=1.4.4 +pkgver=1.4.5 pkgrel=1 pkgdesc="X11 Input extension library (32-bit)" arch=('x86_64') @@ -13,7 +13,7 @@ makedepends=('pkgconfig' 'xorg-util-macros' gcc-multilib) options=(!libtool) license=('custom') source=(${url}/releases/individual/lib/libXi-${pkgver}.tar.bz2) -sha1sums=('e4ca1b45368214ba246bfad398ea087125c79f31') +sha1sums=('8ac24dec8e488f49fd6a6b256c815da9ceec9737') build() { export CC="gcc -m32" diff --git a/~lukeshu/git-svn-abandon-git/PKGBUILD b/~lukeshu/git-svn-abandon-git/PKGBUILD new file mode 100644 index 000000000..51cd83817 --- /dev/null +++ b/~lukeshu/git-svn-abandon-git/PKGBUILD @@ -0,0 +1,51 @@ +# Maintainer: Luke Shumaker + +_pkgname=git-svn-abandon +pkgname=$_pkgname-git +provides=($_pkgname) +conflicts=($_pkgname) +pkgver=20111224 +pkgrel=1 +pkgdesc="" +arch=('any') +url="http://blog.woobling.org/2009/06/git-svn-abandon.html" +license=('MIT') +depends=('git') +makedepends=('git' 'python-markdown') + +_gitroot=https://github.com/nothingmuch/git-svn-abandon.git +_gitname=$_pkgname + +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 + # + markdown README.mkdn > README.html +} + +package() { + cd "$srcdir/$_gitname-build" + install -d "$pkgdir/usr/lib/git-core" + install -m755 git-* "$pkgdir/usr/lib/git-core" + + install -D -m644 README.mkdn "$pkgdir/usr/doc/git-svn-abandon/README.md" + install -D -m644 README.html "$pkgdir/usr/doc/git-svn-abandon/README.html" + install -D -m644 LICENSE "$pkgdir/usr/licenses/git-svn-abandon/LICENSE" +} diff --git a/~lukeshu/make-graph/PKGBUILD b/~lukeshu/make-graph/PKGBUILD new file mode 100644 index 000000000..f7f7cd0b1 --- /dev/null +++ b/~lukeshu/make-graph/PKGBUILD @@ -0,0 +1,64 @@ +# $Id: PKGBUILD 138004 2011-09-14 05:05:12Z allan $ +# Maintainer: Allan McRae +# Contributor: judd + +_pkgname=make +pkgname=$_pkgname-graph +pkgver=3.82 +pkgrel=4.1 +provides=("$_pkgname=$pkgver") +conflicts=("$_pkgname") +pkgdesc="GNU make utility to maintain groups of programs, with patch to dump a Graphviz dependency graph." +arch=('i686' 'x86_64') +url="http://www.gnu.org/software/make" +license=('GPL3') +groups=('base-devel') +depends=('glibc' 'sh') +install=$_pkgname.install +source=(ftp://ftp.gnu.org/gnu/${_pkgname}/${_pkgname}-${pkgver}.tar.bz2 + bug30612.patch + bug30723.patch + make-3.82-sort-blank.patch + make-3.82-makeflags.patch) +md5sums=('1a11100f3c63fcf5753818e59d63088f' + 'c8f496b22191f9fb9420ab14c1a19a47' + '662e6450e19a5acdaa5c9fcb8ad78dea' + '7d01a99f389d8f08dec93ed479071ee4' + 'bc12ad4d0c6e6c0e72d9fb61054f446b') + +source+=('make-graph.patch') +md5sums+=('c1f1d652004a36c69b1f7f42a6849356') +depends+=('graphviz') + +build() { + cd ${srcdir}/${_pkgname}-${pkgver} + + # http://savannah.gnu.org/bugs/?30612 + patch -Np1 -i $srcdir/bug30612.patch + + # http://savannah.gnu.org/bugs/?30723 + patch -Np1 -i $srcdir/bug30723.patch + + # https://bugs.archlinux.org/task/22733 (fix from Fedora) + patch -Np1 -i $srcdir/make-3.82-sort-blank.patch + + # https://savannah.gnu.org/support/index.php?107487 + # https://savannah.gnu.org/bugs/?33873 + patch -Np0 -i $srcdir/make-3.82-makeflags.patch + + # https://savannah.gnu.org/patch/?7447 + patch -Np1 -i $srcdir/make-graph.patch + + ./configure --prefix=/usr + make +} + +check() { + cd ${srcdir}/${_pkgname}-${pkgver} + make check +} + +package() { + cd ${srcdir}/${_pkgname}-${pkgver} + make DESTDIR=${pkgdir} install +} diff --git a/~lukeshu/make-graph/bug30612.patch b/~lukeshu/make-graph/bug30612.patch new file mode 100644 index 000000000..fb843bcd9 --- /dev/null +++ b/~lukeshu/make-graph/bug30612.patch @@ -0,0 +1,66 @@ +diff -Naur make-3.82-orig/main.c make-3.82-fix30612//main.c +--- make-3.82-orig/main.c 2010-07-19 17:10:53.000000000 +1000 ++++ make-3.82-fix30612//main.c 2010-09-23 23:33:37.908855839 +1000 +@@ -1,3 +1,4 @@ ++ + /* Argument parsing and main program of GNU Make. + Copyright (C) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, + 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, +@@ -1138,7 +1139,7 @@ + a macro and some compilers (MSVC) don't like conditionals in macros. */ + { + const char *features = "target-specific order-only second-expansion" +- " else-if shortest-stem undefine" ++ " else-if shortest-stem undefine oneshell" + #ifndef NO_ARCHIVES + " archives" + #endif +diff -Naur make-3.82-orig/read.c make-3.82-fix30612//read.c +--- make-3.82-orig/read.c 2010-07-13 11:20:42.000000000 +1000 ++++ make-3.82-fix30612//read.c 2010-09-23 23:30:58.018855839 +1000 +@@ -3028,7 +3028,7 @@ + { + /* This looks like the first element in an open archive group. + A valid group MUST have ')' as the last character. */ +- const char *e = p + nlen; ++ const char *e = p; + do + { + e = next_token (e); +@@ -3084,19 +3084,19 @@ + Go to the next item in the string. */ + if (flags & PARSEFS_NOGLOB) + { +- NEWELT (concat (2, prefix, tp)); ++ NEWELT (concat (2, prefix, tmpbuf)); + continue; + } + + /* If we get here we know we're doing glob expansion. + TP is a string in tmpbuf. NLEN is no longer used. + We may need to do more work: after this NAME will be set. */ +- name = tp; ++ name = tmpbuf; + + /* Expand tilde if applicable. */ +- if (tp[0] == '~') ++ if (tmpbuf[0] == '~') + { +- tildep = tilde_expand (tp); ++ tildep = tilde_expand (tmpbuf); + if (tildep != 0) + name = tildep; + } +@@ -3152,7 +3152,11 @@ + else + { + /* We got a chain of items. Attach them. */ +- (*newp)->next = found; ++ if (*newp) ++ (*newp)->next = found; ++ else ++ *newp = found; ++ + + /* Find and set the new end. Massage names if necessary. */ + while (1) diff --git a/~lukeshu/make-graph/bug30723.patch b/~lukeshu/make-graph/bug30723.patch new file mode 100644 index 000000000..84e7ebe7a --- /dev/null +++ b/~lukeshu/make-graph/bug30723.patch @@ -0,0 +1,12 @@ +diff -Naur make-3.82-orig/main.c make-3.82-fix30723//main.c +--- make-3.82-orig/main.c 2010-07-19 17:10:53.000000000 +1000 ++++ make-3.82-fix30723//main.c 2010-09-23 23:34:10.932188592 +1000 +@@ -2093,7 +2093,7 @@ + const char *pv = define_makeflags (1, 1); + char *p = alloca (sizeof ("MAKEFLAGS=") + strlen (pv) + 1); + sprintf (p, "MAKEFLAGS=%s", pv); +- putenv (p); ++ putenv (allocated_variable_expand (p)); + } + + if (ISDB (DB_BASIC)) diff --git a/~lukeshu/make-graph/make-3.82-makeflags.patch b/~lukeshu/make-graph/make-3.82-makeflags.patch new file mode 100644 index 000000000..3cba3c402 --- /dev/null +++ b/~lukeshu/make-graph/make-3.82-makeflags.patch @@ -0,0 +1,36 @@ +Index: main.c +=================================================================== +RCS file: /sources/make/make/main.c,v +retrieving revision 1.246 +diff -u -r1.246 main.c +--- main.c 29 Aug 2010 23:05:27 -0000 1.246 ++++ main.c 27 Jul 2011 22:03:12 -0000 +@@ -2091,10 +2095,16 @@ + + /* Reset makeflags in case they were changed. */ + { ++ if (master_job_slots) ++ { ++ assert (job_slots == default_job_slots); ++ job_slots = master_job_slots; ++ } + const char *pv = define_makeflags (1, 1); + char *p = alloca (sizeof ("MAKEFLAGS=") + strlen (pv) + 1); + sprintf (p, "MAKEFLAGS=%s", pv); + putenv (allocated_variable_expand (p)); ++ job_slots = default_job_slots; + } + + if (ISDB (DB_BASIC)) +@@ -2825,9 +2852,11 @@ + && (*(unsigned int *) cs->value_ptr == + *(unsigned int *) cs->noarg_value)) + ADD_FLAG ("", 0); /* Optional value omitted; see below. */ ++#if 0 + else if (cs->c == 'j') + /* Special case for `-j'. */ + ADD_FLAG ("1", 1); ++#endif + else + { + char *buf = alloca (30); diff --git a/~lukeshu/make-graph/make-3.82-sort-blank.patch b/~lukeshu/make-graph/make-3.82-sort-blank.patch new file mode 100644 index 000000000..2e73f5b7c --- /dev/null +++ b/~lukeshu/make-graph/make-3.82-sort-blank.patch @@ -0,0 +1,17 @@ +diff -urp make-3.82/function.c make-3.82-pm/function.c +--- make-3.82/function.c 2010-07-13 03:20:39.000000000 +0200 ++++ make-3.82-pm/function.c 2010-10-27 01:43:27.000000000 +0200 +@@ -1138,12 +1138,12 @@ func_sort (char *o, char **argv, const c + { + char c = *(t++); + +- if (! isspace ((unsigned char)c)) ++ if (! isblank ((unsigned char)c)) + continue; + + ++wordi; + +- while (isspace ((unsigned char)*t)) ++ while (isblank ((unsigned char)*t)) + ++t; + } diff --git a/~lukeshu/make-graph/make-graph.patch b/~lukeshu/make-graph/make-graph.patch new file mode 100644 index 000000000..083db55e4 --- /dev/null +++ b/~lukeshu/make-graph/make-graph.patch @@ -0,0 +1,273 @@ +diff -ur make-3.82/file.c make-wch/file.c +--- make-3.82/file.c 2010-07-12 21:20:39.000000000 -0400 ++++ make-wch/file.c 2010-08-19 23:28:20.162660391 -0400 +@@ -1021,6 +1021,129 @@ + hash_print_stats (&files, stdout); + } + ++/* Dump the dependency graph to a Graphviz file (on stdout) */ ++ ++void ++print_graph_prereqs (const char *filename, const struct dep *deps) ++{ ++ const struct dep *ood = 0; ++ ++ /* Print all normal dependencies; note any order-only deps. */ ++ for (; deps != 0; deps = deps->next) ++ if (! deps->ignore_mtime) ++ printf (" \"%s\" -> \"%s\";\n", filename, dep_name (deps)); ++ ++ /* Print order-only deps, if we have any. */ ++ if (ood) ++ { ++ for (ood = ood->next; ood != 0; ood = ood->next) ++ if (ood->ignore_mtime) ++ printf (" %s -> %s [style=dotted];\n", filename, dep_name (ood)); ++ /* XXX: we need to distinguish these some how. ++ * Is dotting them the right way? */ ++ } ++} ++ ++static void ++print_graph_file (const void *item) ++{ ++ const struct file *f = item; ++ ++ int built_in_special_target=( ++ (0==strcmp(f->name,".PHONY")) ++ || (0==strcmp(f->name,".SUFFIXES")) ++ || (0==strcmp(f->name,".DEFAULT")) ++ || (0==strcmp(f->name,".PRECIOUS")) ++ || (0==strcmp(f->name,".INTERMEDIATE")) ++ || (0==strcmp(f->name,".SECONDARY")) ++ || (0==strcmp(f->name,".SECONDEXPANSION")) ++ || (0==strcmp(f->name,".DELETE_ON_ERROR")) ++ || (0==strcmp(f->name,".IGNORE")) ++ || (0==strcmp(f->name,".LOW_RESOLUTION_TIME")) ++ || (0==strcmp(f->name,".SILENT")) ++ || (0==strcmp(f->name,".EXPORT_ALL_VARIABLES")) ++ || (0==strcmp(f->name,".NOTPARALLEL")) ++ || (0==strcmp(f->name,".ONESHELL")) ++ || (0==strcmp(f->name,".POSIX")) ++ ); ++ if ((f->is_target) && (!built_in_special_target)) ++ { ++ printf (" \"%s\" [", f->name); ++ /* XXX some of these should be attached to the nodes in some way; ++ * though I'm not sure what style changes should be made for which ones. ++ * ~ LukeShu ++ if (f->double_colon) puts (_("// Double-colon rule.")); ++ if (f->precious) puts (_("// Precious file (prerequisite of .PRECIOUS).")); ++ */if (f->phony) puts (_(" color=blue "));/* ++ if (f->cmd_target) puts (_("// Command line target.")); ++ if (f->dontcare) puts (_("// A default, MAKEFILES, or -include/sinclude makefile.")); ++ if (f->tried_implicit) puts (_("// Implicit rule search has been done.")); ++ else puts (_("// Implicit rule search has not been done.")); ++ if (f->stem != 0) printf (_("// Implicit/static pattern stem: `%s'\n"), f->stem); ++ if (f->intermediate) puts (_("// File is an intermediate prerequisite.")); ++ if (f->also_make != 0) ++ { ++ const struct dep *d; ++ fputs (_("# Also makes:"), stdout); ++ for (d = f->also_make; d != 0; d = d->next) ++ printf (" %s\n", dep_name (d)); ++ } ++ if (f->last_mtime == UNKNOWN_MTIME) puts (_("// Modification time never checked.")); ++ else if (f->last_mtime == NONEXISTENT_MTIME) puts (_("// File does not exist.")); ++ else if (f->last_mtime == OLD_MTIME) puts (_("// File is very old.")); ++ else ++ { ++ char buf[FILE_TIMESTAMP_PRINT_LEN_BOUND + 1]; ++ file_timestamp_sprintf (buf, f->last_mtime); ++ printf (_("// Last modified %s\n"), buf); ++ } ++ if (f->updated) puts (_("// File has been updated.")); ++ else puts (_("// File has not been updated.")); ++ switch (f->command_state) ++ { ++ case cs_running: puts (_("// Update: Running (THIS IS A BUG).")); break; ++ case cs_deps_running: puts (_("// Update: Dependencies running (THIS IS A BUG).")); break; ++ case cs_not_started: ++ case cs_finished: ++ switch (f->update_status) ++ { ++ case -1: break; ++ case 0: puts (_("// Update: Successfully")); break; ++ case 1: assert (question_flag); ++ puts (_("// Update: Needs to be (-q is set)")); break; ++ case 2: puts (_("// Update: Failed")); break; ++ default: puts (_("// Update: Invalid `update_status' value)); ++ fflush (stdout); ++ fflush (stderr); ++ abort (); ++ } ++ break; ++ default: puts (_("// Update: Invalid `command_state' value")); ++ fflush (stdout); ++ fflush (stderr); ++ abort (); ++ } ++ if (f->variables != 0) print_file_variables (f); ++ if (f->cmds != 0) print_commands (f->cmds); ++ */ ++ puts("];"); ++ print_graph_prereqs (f->name, f->deps); ++ } ++ ++ if (f->prev) ++ print_graph_file ((const void *) f->prev); ++} ++ ++void ++print_graph (void) ++{ ++ printf ("%sgraph make%i {\n", ++ (makelevel==0)?"di":"sub", ++ getpid()); ++ hash_map (&files, print_graph_file); ++ puts ("}"); ++} ++ + /* Verify the integrity of the data base of files. */ + + #define VERIFY_CACHED(_p,_n) \ +diff -ur make-3.82/filedef.h make-wch/filedef.h +--- make-3.82/filedef.h 2010-07-12 21:20:39.000000000 -0400 ++++ make-wch/filedef.h 2010-08-19 21:09:34.314660209 -0400 +@@ -116,6 +116,7 @@ + char *build_target_list (char *old_list); + void print_prereqs (const struct dep *deps); + void print_file_data_base (void); ++void print_graph (void); + + #if FILE_TIMESTAMP_HI_RES + # define FILE_TIMESTAMP_STAT_MODTIME(fname, st) \ +diff -ur make-3.82/main.c make-wch/main.c +--- make-3.82/main.c 2010-07-19 03:10:53.000000000 -0400 ++++ make-wch/main.c 2010-08-21 22:32:56.818417305 -0400 +@@ -175,6 +175,11 @@ + + int print_data_base_flag = 0; + ++/* Nonzero means don't remake anything, just print the dependency graph ++ that results from reading the makefile (-g). */ ++ ++int print_graph_flag = 0; ++ + /* Nonzero means don't remake anything; just return a nonzero status + if the specified targets are not up to date (-q). */ + +@@ -321,6 +326,9 @@ + -f FILE, --file=FILE, --makefile=FILE\n\ + Read FILE as a makefile.\n"), + N_("\ ++ -g, --graph Print make's internal dependency graph\n\ ++ in Graphviz format, without remaking makefiles.\n"), ++ N_("\ + -h, --help Print this message and exit.\n"), + N_("\ + -i, --ignore-errors Ignore errors from recipes.\n"), +@@ -385,6 +393,7 @@ + #endif + { 'e', flag, &env_overrides, 1, 1, 0, 0, 0, "environment-overrides", }, + { 'f', filename, &makefiles, 0, 0, 0, 0, 0, "file" }, ++ { 'g', flag, &print_graph_flag, 1, 1, 0, 0, 0, "graph" }, + { 'h', flag, &print_usage_flag, 0, 0, 0, 0, 0, "help" }, + { 'i', flag, &ignore_errors_flag, 1, 1, 0, 0, 0, "ignore-errors" }, + { 'I', filename, &include_directories, 1, 1, 0, 0, 0, +@@ -1946,7 +1955,10 @@ + define_makeflags (1, 1); + + rebuilding_makefiles = 1; +- status = update_goal_chain (read_makefiles); ++ if (print_graph_flag) ++ status = -1; ++ else ++ status = update_goal_chain (read_makefiles); + rebuilding_makefiles = 0; + + switch (status) +@@ -2278,33 +2290,37 @@ + + { + int status; ++ if (print_graph_flag) ++ status=0; ++ else ++ { ++ switch (update_goal_chain (goals)) ++ { ++ case -1: ++ /* Nothing happened. */ ++ case 0: ++ /* Updated successfully. */ ++ status = makefile_status; ++ break; ++ case 1: ++ /* We are under -q and would run some commands. */ ++ status = MAKE_TROUBLE; ++ break; ++ case 2: ++ /* Updating failed. POSIX.2 specifies exit status >1 for this; ++ but in VMS, there is only success and failure. */ ++ status = MAKE_FAILURE; ++ break; ++ default: ++ abort (); ++ } + +- switch (update_goal_chain (goals)) +- { +- case -1: +- /* Nothing happened. */ +- case 0: +- /* Updated successfully. */ +- status = makefile_status; +- break; +- case 1: +- /* We are under -q and would run some commands. */ +- status = MAKE_TROUBLE; +- break; +- case 2: +- /* Updating failed. POSIX.2 specifies exit status >1 for this; +- but in VMS, there is only success and failure. */ +- status = MAKE_FAILURE; +- break; +- default: +- abort (); +- } +- +- /* If we detected some clock skew, generate one last warning */ +- if (clock_skew_detected) +- error (NILF, +- _("warning: Clock skew detected. Your build may be incomplete.")); +- ++ /* If we detected some clock skew, generate one last warning */ ++ if (clock_skew_detected) ++ error (NILF, ++ _("warning: Clock skew detected. Your build may be incomplete.")); ++ } ++ + /* Exit. */ + die (status); + } +@@ -3042,7 +3058,7 @@ + { + static int printed_version = 0; + +- char *precede = print_data_base_flag ? "# " : ""; ++ char *precede = (print_data_base_flag||print_graph_flag) ? "# " : ""; + + if (printed_version) + /* Do it only once. */ +@@ -3188,6 +3204,10 @@ + if (print_data_base_flag) + print_data_base (); + ++ ++ if (print_graph_flag) ++ print_graph (); ++ + verify_file_data_base (); + + clean_jobserver (status); diff --git a/~lukeshu/make-graph/make.install b/~lukeshu/make-graph/make.install new file mode 100644 index 000000000..6cf8b0dc4 --- /dev/null +++ b/~lukeshu/make-graph/make.install @@ -0,0 +1,20 @@ +infodir=usr/share/info +filelist=(make.info make.info-1 make.info-2) + +post_install() { + [ -x usr/bin/install-info ] || return 0 + for file in ${filelist[@]}; do + install-info $infodir/$file.gz $infodir/dir 2> /dev/null + done +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + [ -x usr/bin/install-info ] || return 0 + for file in ${filelist[@]}; do + install-info --delete $infodir/$file.gz $infodir/dir 2> /dev/null + done +} diff --git a/~lukeshu/redo/PKGBUILD b/~lukeshu/redo/PKGBUILD new file mode 100644 index 000000000..95e75dd0e --- /dev/null +++ b/~lukeshu/redo/PKGBUILD @@ -0,0 +1,36 @@ +# Maintainer: Luke Shumaker + +pkgname=redo +pkgver=0.06 +pkgrel=1 +pkgdesc="A competitor to make based on essays by DJB.") +arch=('any') +url="https://github.com/apenwarr/$pkgname" +license=('GPL2') +depends=('python2') +source=("$pkgname-$pkgver.tar.gz::https://github.com/apenwarr/$pkgname/tarball/$pkgname-$pkgver") + +build() { + cd "$srcdir/apenwarr-$pkgname-"* + + # Make everything use python2 + sed -i 's@^#!/usr/bin/python$@#!/usr/bin/python2@' *.py + sed -i 's@/usr/bin/env python@/usr/bin/env python2@' Documentation/md2man.py + sed -i -e 's@^python @python2 @' \ + -e 's@/usr/bin/python$@/usr/bin/python2@' \ + install.do + + make +} + +check() { + cd "$srcdir/apenwarr-$pkgname-"* + make test +} + +package() { + cd "$srcdir/apenwarr-$pkgname-"* + make install DESTDIR="$pkgdir" +} + +md5sums=('0faa0e98f3d60fdcdea826dad59923c8') diff --git a/~lukeshu/stow/PKGBUILD b/~lukeshu/stow/PKGBUILD new file mode 100644 index 000000000..24a2dcb1c --- /dev/null +++ b/~lukeshu/stow/PKGBUILD @@ -0,0 +1,24 @@ +# Maintainer: Luke Shumaker + +pkgname=stow +pkgver=2.1.2 +pkgrel=1 +pkgdesc="A program for managing the installation of software packages, keeping them separate while making them appear to be installed in the same place." +arch=(any) +url="https://www.gnu.org/software/$pkgname/" +license=('GPL2') +depends=('perl>=5.6.1') +source=(http://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz) + +build() { + cd "$srcdir/$pkgname-$pkgver" + ./configure --prefix=/usr + make +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + make DESTDIR="$pkgdir/" install +} + +md5sums=('82857e43531cf6936aed99ef3b86b446') diff --git a/~lukeshu/terminal-colors/PKGBUILD b/~lukeshu/terminal-colors/PKGBUILD new file mode 100644 index 000000000..662e5b5ef --- /dev/null +++ b/~lukeshu/terminal-colors/PKGBUILD @@ -0,0 +1,23 @@ +# Maintainer: Luke Shumaker + +pkgname=terminal-colors +pkgver=1.3 +pkgrel=1 +pkgdesc="Displays charts for 256/88/16 terminal color modes. Also supports converting between 256/88 color values." +arch=('any') +url="http://zhar.net/projects/shell/" +license=('GPL3') +depends=('python2') +source=("terminal-colors.py::http://zhar.net/projects/shell/terminal-colors") + +build() { + cd "$srcdir" + sed 's@/usr/bin/env python$@/usr/bin/env python2@' < terminal-colors.py > terminal-colors +} + +package() { + cd "$srcdir" + install -D -m755 terminal-colors "$pkgdir/usr/bin/terminal-colors" +} + +md5sums=('30e3ab6cde416df110110244ce40eb94') diff --git a/~lukeshu/thingutils-git/PKGBUILD b/~lukeshu/thingutils-git/PKGBUILD new file mode 100644 index 000000000..5ef2c1c56 --- /dev/null +++ b/~lukeshu/thingutils-git/PKGBUILD @@ -0,0 +1,55 @@ +# Maintainer: Luke Shumaker + +_pkgname=thingutils +pkgname=$_pkgname-git +provides=($_pkgname) +conflicts=($_pkgname) +pkgver=20111224 +pkgrel=1 +pkgdesc="" +arch=('any') +url="https://gitorious.org/thingutils" +license=('MIT') +depends=( + 'php' # roll, urldecode + 'bash' # daemon, newegg, sysfiles + 'emacs' # emacsmail, emacsterm, e + 'wget' # whatismyip + 'findutils' # maildups, whatismyip + 'sysstat' # sysfiles + 'offlineimap' # offlineimap-runner + 'wdiff' # chardiff +) +makedepends=('git') + +_gitroot=https://git.gitorious.org/thingutils/thingutils.git +_gitname=$_pkgname + +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 + # + make prefix=/usr +} + +package() { + cd "$srcdir/$_gitname-build" + make install prefix=/usr DESTDIR="$pkgdir" +} diff --git a/~lukeshu/wdiff/PKGBUILD b/~lukeshu/wdiff/PKGBUILD new file mode 100644 index 000000000..6092b3d76 --- /dev/null +++ b/~lukeshu/wdiff/PKGBUILD @@ -0,0 +1,29 @@ +# Maintainer: Luke Shumaker + +pkgname=wdiff +pkgver=1.1.0 +pkgrel=1 +pkgdesc="A front end to diff for comparing files on a word per word basis." +arch=('i686' 'x86_64') +url="https://www.gnu.org/software/$pkgname/" +license=('GPL3') +depends=('diffutils') +source=(http://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz) + +build() { + cd "$srcdir/$pkgname-$pkgver" + ./configure --prefix=/usr + make +} + +check() { + cd "$srcdir/$pkgname-$pkgver" + make -k check +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + make DESTDIR="$pkgdir/" install +} + +md5sums=('aa4dd87a9140a96ee85d2502673d19f3') -- cgit v1.2.3-54-g00ecf