diff options
Diffstat (limited to 'community')
-rw-r--r-- | community/dos2unix/PKGBUILD | 6 | ||||
-rw-r--r-- | community/erlang/PKGBUILD | 71 | ||||
-rw-r--r-- | community/lxdm/PKGBUILD | 14 | ||||
-rw-r--r-- | community/lxdm/lxdm.install | 18 | ||||
-rw-r--r-- | community/mupdf/PKGBUILD | 18 | ||||
-rw-r--r-- | community/slimevolley/PKGBUILD | 11 | ||||
-rw-r--r-- | community/slimevolley/link-libm.patch | 14 | ||||
-rw-r--r-- | community/wavegain/PKGBUILD | 10 | ||||
-rw-r--r-- | community/xmoto/PKGBUILD | 9 | ||||
-rw-r--r-- | community/xmoto/xmoto.install | 10 |
10 files changed, 141 insertions, 40 deletions
diff --git a/community/dos2unix/PKGBUILD b/community/dos2unix/PKGBUILD index 569a63161..e85d40e06 100644 --- a/community/dos2unix/PKGBUILD +++ b/community/dos2unix/PKGBUILD @@ -1,9 +1,9 @@ -# Maintainer: Bartłomiej Piotrowski <barthalion@gmail.com> +# Maintainer: Bartłomiej Piotrowski # Contributor: Renato Garcia <fgar.renatoATgmailDOTcom> # Contributor: Gerson E. Ruotolo <gersonruotolo@globo.com> pkgname=dos2unix -pkgver=5.3.2 +pkgver=5.3.3 pkgrel=1 pkgdesc='Text file format converter' arch=('i686' 'x86_64') @@ -13,7 +13,7 @@ depends=('glibc') makedepends=('perl') conflicts=('hd2u') source=("http://waterlan.home.xs4all.nl/${pkgname}/${pkgname}-${pkgver}.tar.gz") -md5sums=('aa2768f3e1223f0e8f30e6449d398872') +md5sums=('f352d648b97197c8a786eccc832764d8') build() { cd "${srcdir}/${pkgname}-${pkgver}" diff --git a/community/erlang/PKGBUILD b/community/erlang/PKGBUILD new file mode 100644 index 000000000..b52cbf059 --- /dev/null +++ b/community/erlang/PKGBUILD @@ -0,0 +1,71 @@ +# $Id: PKGBUILD 67366 2012-03-10 17:20:02Z tdziedzic $ +# Maintainer: Vesa Kaihlavirta <vesa@archlinux.org> +# Contributor: Sarah Hay <sarahhay@mb.sympatico.ca> +# Contributor: Tom Burdick <thomas.burdick@wrightwoodtech.com> + +pkgname=erlang +pkgver=R14B04 +pkgrel=2 +pkgdesc="A small concurrent functional programming language developed by Ericsson." +arch=(i686 x86_64) +url="http://www.erlang.org/index.html" +license=('custom') +depends=('ncurses' 'glibc') +makedepends=('java-environment' 'perl' 'openssl' 'wxgtk' 'unixodbc>=2.3.1' 'mesa') +optdepends=('wxgtk: for wx support' 'unixodbc: database') + +options=('!makeflags') +source=(http://www.erlang.org/download/otp_src_${pkgver/./-}.tar.gz + http://www.erlang.org/download/otp_doc_man_${pkgver/./-}.tar.gz) +md5sums=('4b469729f103f52702bfb1fb24529dc0' + 'f31e72518daae4007f595c0b224dd59f') + +# please check these deps reported by namcap when you do the next build: +#erlang E: Dependency java-environment detected and not included (found class files usr/lib/erlang/lib/jinterface-1.5.4/priv/OtpErlang.jar, usr/lib/erlang/lib/ic-4.2.27/priv/ic.jar) +#erlang E: Dependency mesa detected and not included (libraries ['usr/lib/libGLU.so.1'] needed in files ['usr/lib/erlang/lib/wx-0.99/priv/erl_gl.so']) + + +build() { + cd "$srcdir/otp_src_${pkgver/./-}" + export ERTSVERSION=$(sed -n 's/^VSN[ ]*=[ ]*\([0-9.]\)/\1/p' < erts/vsn.mk) + export ERLINTERFACEVERSION=$(sed -n 's/^EI_VSN[ ]*=[ ]*\([0-9.]\)/\1/p' < lib/erl_interface/vsn.mk) + + sed -i '/SSL_DYNAMIC_ONLY=/s:no:yes:' erts/configure + + CFLAGS="${CFLAGS} -fno-strict-aliasing" ./configure --prefix=/usr --enable-smp-support --enable-threads -enable-native-libs + make +} + +package() { + cd "$srcdir/otp_src_${pkgver/./-}" + make INSTALL_PREFIX="$pkgdir" install + +# fix prefix + cd "$pkgdir" + for i in usr/lib/erlang/bin/erl \ + usr/lib/erlang/bin/start \ + usr/lib/erlang/erts-${ERTSVERSION}/bin/erl \ + usr/lib/erlang/erts-${ERTSVERSION}/bin/start \ + usr/lib/erlang/releases/RELEASES ;do + sed -i "s#$pkgdir##" $i + done + +# fix symlinks + cd "$pkgdir/usr/lib/erlang/bin" + ln -sf ../erts-${ERTSVERSION}/bin/epmd + + cd "$pkgdir/usr/bin" + for file in *; do + ln -sfv ../lib/erlang/bin/$file + done + + ln -s ../lib/erlang/lib/erl_interface-${ERLINTERFACEVERSION}/bin/erl_call "$pkgdir/usr/bin/erl_call" + +# install documentation + install -d "$pkgdir/usr/share/doc/erlang" + install -D -m644 "$srcdir"/{COPYRIGHT,PR.template,README} "$pkgdir/usr/share/doc/erlang" + cp -r "$srcdir/man" "$pkgdir/usr/lib/erlang" + + install -Dm644 "$srcdir/otp_src_${pkgver/./-}/EPLICENCE" "$pkgdir/usr/share/licenses/$pkgname/EPLICENCE" + +} diff --git a/community/lxdm/PKGBUILD b/community/lxdm/PKGBUILD index 568bfc517..20c9c3eb4 100644 --- a/community/lxdm/PKGBUILD +++ b/community/lxdm/PKGBUILD @@ -1,11 +1,11 @@ -# $Id: PKGBUILD 60015 2011-12-03 08:31:47Z bpiotrowski $ -# Maintainer: Bartłomiej Piotrowski <barthalion@gmail.com> +# $Id: PKGBUILD 67372 2012-03-10 19:36:34Z bpiotrowski $ +# Maintainer: Bartłomiej Piotrowski # Contributor: AndyRTR <andyrtr@archlinux.org> # Contributor: kiefer <jorgelmadrid@gmail.com> pkgname=lxdm pkgver=0.4.1 -pkgrel=7 +pkgrel=8 pkgdesc="Lightweight Display Manager (part of LXDE)" arch=('i686' 'x86_64') url="http://sourceforge.net/projects/lxdm/" @@ -17,7 +17,7 @@ install=${pkgname}.install backup=('etc/lxdm/lxdm.conf' 'etc/pam.d/lxdm' 'etc/lxdm/Xsession' 'etc/lxdm/PreLogin' 'etc/lxdm/LoginReady' 'etc/lxdm/PostLogin' 'etc/lxdm/PostLogout' 'etc/lxdm/PreReboot' 'etc/lxdm/PreShutdown') -source=("http://downloads.sourceforge.net/lxde/$pkgname-$pkgver.tar.gz" +source=(http://downloads.sourceforge.net/lxde/$pkgname-$pkgver.tar.gz lxdm.patch lxdm-conf.patch lxdm-pam.patch Xsession.patch lxdm-daemon) md5sums=('8da1cfc2be6dc9217c85a7cf51e1e821' 'baed9055e8825a5511712bc095197519' @@ -31,9 +31,9 @@ build() { ./configure --sysconfdir=/etc --prefix=/usr --libexecdir=/usr/lib/lxdm make - patch -Np0 < ../lxdm.patch - patch -Np0 < ../lxdm-conf.patch - patch -Np0 < ../Xsession.patch + patch -Np0 -i $srcdir/lxdm.patch + patch -Np0 -i $srcdir/lxdm-conf.patch + patch -Np0 -i $srcdir/Xsession.patch } diff --git a/community/lxdm/lxdm.install b/community/lxdm/lxdm.install index 24edd91a4..eaf2339cd 100644 --- a/community/lxdm/lxdm.install +++ b/community/lxdm/lxdm.install @@ -1,10 +1,11 @@ pkgname=lxdm post_install() { - getent group lxdm > /dev/null 2>&1 || groupadd -g 121 lxdm - getent passwd lxdm > /dev/null 2>&1 || useradd -c 'LXDE Display Manager' -u 121 -g lxdm -d /var/lib/lxdm -s /sbin/nologin lxdm - passwd -l lxdm > /dev/null - chown -R lxdm:lxdm /var/lib/lxdm > /dev/null + if [ -z "`getent group "lxdm" 2> /dev/null`" ]; then + groupadd lxdm + chown root:lxdm /etc/lxdm/lxdm.conf + fi + chown -R root:lxdm /var/lib/lxdm > /dev/null chmod +r /etc/lxdm/lxdm.conf } @@ -13,6 +14,11 @@ post_upgrade() { } post_remove() { - getent passwd lxdm > /dev/null 2>&1 && userdel lxdm - getent group lxdm > /dev/null 2>&1 && groupdel lxdm + getent group "lxdm" &>/dev/null && groupdel lxdm #1>/dev/null + return 0 } + +op=$1 +shift + +$op "$@" diff --git a/community/mupdf/PKGBUILD b/community/mupdf/PKGBUILD index 3f5a016fd..1817f38ac 100644 --- a/community/mupdf/PKGBUILD +++ b/community/mupdf/PKGBUILD @@ -1,28 +1,31 @@ -# $Id: PKGBUILD 55364 2011-09-10 10:56:13Z pschmitz $ -# Maintainer: Brad Fanella <bradfanella@archlinux.us> +# $Id: PKGBUILD 67364 2012-03-10 11:47:55Z bpiotrowski $ +# Maintainer: Bartłomiej Piotrowski +# Contributor: Brad Fanella <bradfanella@archlinux.us> # Contributor: Stefan Husmann <stefan-husmann@t-online.de> # Contributor: Pierre-Paul Paquin <pierrepaulpaquin@gmail.com> # Contributor: xduugu (.desktop and install files) pkgname=mupdf pkgver=0.9 -pkgrel=1 +pkgrel=2 pkgdesc="lightweight PDF viewer and toolkit written in portable C" arch=('i686' 'x86_64') url="http://mupdf.com" license=('GPL3') -depends=('freetype2' 'libjpeg' 'jbig2dec' 'openjpeg' 'libxext') +depends=('freetype2' 'libjpeg' 'jbig2dec' 'openjpeg' 'libxext' 'desktop-file-utils') install=mupdf.install source=("http://mupdf.com/download/$pkgname-$pkgver-source.tar.gz") md5sums=('76640ee16a797a27fe49cc0eaa87ce3a') build() { + CFLAGS+=" -fPIC" + CXXFLAGS+=" -fPIC" + cd "$srcdir/$pkgname-$pkgver" make build=release prefix="$pkgdir/usr" } package() { - # Install cd "$srcdir/$pkgname-$pkgver" make build=release prefix="${pkgdir}/usr" install @@ -34,8 +37,8 @@ package() { mv "$i" "$i-mupdf"; done - cd "$srcdir/$pkgname-$pkgver" # Fix mupdf.desktop + cd "$srcdir/$pkgname-$pkgver" sed -i "s/mupdf.xpm/mupdf/" debian/mupdf.desktop sed -i "s/application\/x-pdf/application\/x-pdf/" debian/mupdf.desktop @@ -43,4 +46,7 @@ package() { cd "$srcdir/$pkgname-$pkgver/debian" install -Dm644 mupdf.desktop "$pkgdir/usr/share/applications/mupdf.desktop" install -Dm644 mupdf.xpm "$pkgdir/usr/share/pixmaps/mupdf.xpm" + + # Fix permissions + chmod 644 $pkgdir/usr/lib/{libmuxps.a,libfitz.a,libmupdf.a} } diff --git a/community/slimevolley/PKGBUILD b/community/slimevolley/PKGBUILD index 0259f974e..695f6eb3f 100644 --- a/community/slimevolley/PKGBUILD +++ b/community/slimevolley/PKGBUILD @@ -1,22 +1,25 @@ -# $Id: PKGBUILD 33998 2010-11-30 17:47:24Z lcarlier $ +# $Id: PKGBUILD 67388 2012-03-10 21:54:03Z lcarlier $ # Maintainer : Geoffroy Carrier <gcarrier@aur.archlinux.org> # Contributor: Joel Schaerer <joel.schaerer@laposte.net> pkgname=slimevolley pkgver=2.4.2 -pkgrel=1 +pkgrel=2 pkgdesc="A simple yet fun arcade volley game" arch=('i686' 'x86_64') url="http://slime.tuxfamily.org/index.php" license=('GPL') depends=('sdl_net' 'sdl_ttf' 'sdl_image') makedepends=('cmake') -source=("http://downloads.tuxfamily.org/slime/v242/${pkgname}_${pkgver}.tar.bz2") +source=("http://downloads.tuxfamily.org/slime/v242/${pkgname}_${pkgver}.tar.bz2" + link-libm.patch) md5sums=('42d1287bf459c26475a9bb7a9bb167e5') build() { cd "$srcdir/$pkgname" + patch -Np1 -i ../link-libm.patch + cmake -DCMAKE_INSTALL_PREFIX:FILEPATH=/usr . make } @@ -26,3 +29,5 @@ package() { make DESTDIR="${pkgdir}" install } +md5sums=('42d1287bf459c26475a9bb7a9bb167e5' + '4e5a7d4fb97e8f482e5468acc795a17b') diff --git a/community/slimevolley/link-libm.patch b/community/slimevolley/link-libm.patch new file mode 100644 index 000000000..acbd21d37 --- /dev/null +++ b/community/slimevolley/link-libm.patch @@ -0,0 +1,14 @@ +Description: Link to libm to prevent FTBFS with --no-add-needed. +Author: Evgeni Golov <evgeni@debian.org> +Bug-Debian: http://bugs.debian.org/615775 + +--- slimevolley-2.4.2.orig/CMakeLists.txt ++++ slimevolley-2.4.2/CMakeLists.txt +@@ -42,6 +42,7 @@ LINK_LIBRARIES( + ${SDL_LIBRARY} + ${SDLTTF_LIBRARY} + ${SDLIMAGE_LIBRARY} ++ m + ) + + INCLUDE(FindGettext.cmake) diff --git a/community/wavegain/PKGBUILD b/community/wavegain/PKGBUILD index 6962ab2e5..183516e86 100644 --- a/community/wavegain/PKGBUILD +++ b/community/wavegain/PKGBUILD @@ -1,10 +1,10 @@ -# $Id: PKGBUILD 56863 2011-10-15 08:48:28Z schiv $ +# $Id: PKGBUILD 67386 2012-03-10 21:21:31Z lcarlier $ # Maintainer: Ray Rashif <schiv@archlinux.org> # Contributor: Corrado Primier <bardo@aur.archlinux.org> pkgname=wavegain _realname=WaveGain -pkgver=1.3.0 +pkgver=1.3.1 pkgrel=1 pkgdesc="A command line tool to normalize sound files" arch=('i686' 'x86_64') @@ -12,12 +12,14 @@ url="http://rarewares.org/others.php" license=('LGPL') depends=('libsndfile') source=(http://www.rarewares.org/files/others/$pkgname-${pkgver}srcs.zip) -md5sums=('6f4bc4f5fc7387db34e04f80fdf74dd2') +md5sums=('456106bae00cec2ec4024da992bc5fd0') build() { cd "$srcdir/$_realname-$pkgver" - make -f Makefile.linux + #make -f Makefile.linux + gcc ${LDFLAGS} ${CFLAGS} *.c -o wavegain -DHAVE_CONFIG_H -lm + } package() { diff --git a/community/xmoto/PKGBUILD b/community/xmoto/PKGBUILD index 0a865690d..79ffae8c1 100644 --- a/community/xmoto/PKGBUILD +++ b/community/xmoto/PKGBUILD @@ -1,17 +1,18 @@ -# $Id: $ +# $Id: PKGBUILD 67382 2012-03-10 21:01:16Z giovanni $ # Maintainer: Ronald van Haren <ronald.archlinux.org> # Contributor: Travis Willard <travisw@wmpub.ca> # Contributor: Denis (dtonator@gmail.com) pkgname=xmoto pkgver=0.5.9 -pkgrel=1 +pkgrel=2 pkgdesc="A challenging 2D motocross platform game, where physics play an important role." arch=('i686' 'x86_64') url="http://xmoto.tuxfamily.org" license=('GPL') -depends=('bzip2' 'libjpeg' 'libpng' 'lua' 'sdl_mixer' 'ode=0.11.1' 'curl' - 'mesa' 'sqlite3' 'sdl_ttf' 'desktop-file-utils' 'sdl_net' 'libxdg-basedir' 'libxml++') +depends=('bzip2' 'libjpeg' 'libpng' 'lua' 'sdl_mixer' 'ode' 'curl' + 'mesa' 'sqlite3' 'sdl_ttf' 'desktop-file-utils' 'sdl_net' + 'libxdg-basedir' 'libxml++') install=xmoto.install source=("http://download.tuxfamily.org/${pkgname}/${pkgname}/${pkgver}/${pkgname}-${pkgver}-src.tar.gz" 'xmoto-0.5.9-libpng15.patch') diff --git a/community/xmoto/xmoto.install b/community/xmoto/xmoto.install index 52399d4c1..e111ef946 100644 --- a/community/xmoto/xmoto.install +++ b/community/xmoto/xmoto.install @@ -1,15 +1,11 @@ post_install() { - /usr/bin/update-desktop-database + update-desktop-database -q } post_upgrade() { - /usr/bin/update-desktop-database + post_install } post_remove() { - /usr/bin/update-desktop-database + post_install } - -op=$1 -shift -$op $* |