diff options
Diffstat (limited to 'community-testing')
-rw-r--r-- | community-testing/pkgtools/PKGBUILD | 36 | ||||
-rw-r--r-- | community-testing/pkgtools/pkgtools.install | 66 | ||||
-rw-r--r-- | community-testing/vdrift/PKGBUILD | 61 | ||||
-rw-r--r-- | community-testing/vdrift/vdrift.desktop | 11 | ||||
-rw-r--r-- | community-testing/vdrift/vdrift.install | 11 |
5 files changed, 185 insertions, 0 deletions
diff --git a/community-testing/pkgtools/PKGBUILD b/community-testing/pkgtools/PKGBUILD new file mode 100644 index 000000000..922bb5fa3 --- /dev/null +++ b/community-testing/pkgtools/PKGBUILD @@ -0,0 +1,36 @@ +# Maintainer: Daenyth <Daenyth+Arch AT gmail DOT com> +# Contributor: Daenyth <Daenyth+Arch AT gmail DOT com> +pkgname=pkgtools +pkgver=23 +pkgrel=3 +pkgdesc="A collection of scripts for Arch Linux packages" +arch=('i686' 'x86_64') +url="http://bbs.archlinux.org/viewtopic.php?pid=384196" +license=('GPL') +source=(v$pkgver::http://github.com/Daenyth/pkgtools/tarball/v$pkgver) +backup=('etc/pkgtools/newpkg.conf' 'etc/pkgtools/pkgfile.conf' 'etc/pkgtools/spec2arch.conf') +install=pkgtools.install +provides=(newpkg pkgfile) +depends=('bash>=4' 'pcre' 'libarchive' 'python') +optdepends=('cron: For pkgfile --update entry' + 'abs: Provides proto packaging files for newpkg' + 'python-yaml: for gem2arch' + 'python2: for pkgconflict') +md5sums=('5361111e31741f8d7ff8ca45c7996b6b') + +build() { + cd "$srcdir/Daenyth-$pkgname"-* + + make +} + +package() { + cd "$srcdir/Daenyth-$pkgname"-* + + make DESTDIR="$pkgdir" install + + # fix infinite loop in autotools configure scripts + sed -i '/export -f command_not_found_handle/d' "$pkgdir/usr/share/pkgtools/pkgfile-hook.bash" +} + +# vim:set ts=2 sw=2 et: diff --git a/community-testing/pkgtools/pkgtools.install b/community-testing/pkgtools/pkgtools.install new file mode 100644 index 000000000..bcbf2f85c --- /dev/null +++ b/community-testing/pkgtools/pkgtools.install @@ -0,0 +1,66 @@ +_MSG_UPDATE=" - Make sure to run pkgfile --update before use" +_MSG_CRON=" - An entry has been placed in /etc/cron.daily to run pkgfile --update + If you do not want this functionality, set UPDATE_CRON=0 in /etc/pkgtools/pkgfile.conf" +_MSG_HOOK=" - pkgfile includes a \"command not found\" hook for both zsh and bash. + This will automatically run pkgfile whenever you run + a command which the shell cannot find. If you want + this functionality, set CMD_SEARCH_ENABLED to 1 in + /etc/pkgtools/pkgfile.conf (or per-user by copying + that file to \${XDG_CONFIG_HOME}/pkgtools/pkgfile.conf), then + in your current shell run: + source /etc/profile" + +is_update_from() { + res="`vercmp $1 $2`" + case $res in + '-1'|'0') return 0;; + '1') return 1;; + esac +} + +## arg 1: the new package version +post_install() { + echo "$_MSG_UPDATE" + echo "$_MSG_HOOK" + echo "$_MSG_CRON" +} + +## arg 1: the new package version +## arg 2: the old package version +post_upgrade() { + if is_update_from $2 11-1; then + echo " - All bugs related to pkgfile -b should be fixed in this update." + fi + if is_update_from $2 12-1; then + echo " - NOTE: pkgtools' \"command not found\" hook configuration has changed." + echo " Please remove any old symlinks relating to it." + echo "$_MSG_HOOK" + fi + if is_update_from $2 15-1; then + echo " - pkgtools now uses \$XDG_CONFIG_HOME for all user-specific configuration." + echo " run «mv ~/.pkgtools \"\$XDG_CONFIG_HOME/pkgtools\"»" + fi + if is_update_from $2 18-1; then + echo " - newpkg has been rewritten to be completely modular. See here for more info: http://github.com/Daenyth/pkgtools/commit/2d37197" + fi + if is_update_from $2 19-1; then + echo " ! This version contains an important bugfix for pkgfile. Previously, package updates would cause the pkgfile --update cron job to" + echo " regain +x mode, causing updates to run even when manually disabled. This version disables the cronjob by setting UPDATE_CRON=0" + echo " in /etc/pkgtools/pkgfile.conf" + echo " - This version of pkgtools contains a new tool called 'maintpkg'" + echo " It sets the Maintainer in a PKGBUILD to your PACKAGER while preserving old Contributors" + fi + if is_update_from $2 22-1; then + echo " - This is the largest release in a long time. This updates all python scripts to py3k." + echo " - This version of pkgtools includes a new tool called gem2arch, for automating ruby gem packaging" + fi +} + +## arg 1: the old package version +post_remove() { + cat << _EOM + - You may want to clean /var/cache/pkgtools/lists +_EOM +} + +# vim:set ts=2 sw=2 et filetype=sh: diff --git a/community-testing/vdrift/PKGBUILD b/community-testing/vdrift/PKGBUILD new file mode 100644 index 000000000..ee0fb7ffc --- /dev/null +++ b/community-testing/vdrift/PKGBUILD @@ -0,0 +1,61 @@ +# $Id: PKGBUILD 61624 2012-01-04 22:46:02Z ebelanger $ +# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com> +# Contributor: Anton Bazhenov <anton.bazhenov at gmail> +# Contributor: Lone_Wolf lonewolf@xs4all.nl + +pkgname=vdrift +pkgver=2011.10.22 +pkgrel=2 +pkgdesc="An open source driving simulation made with drift racing in mind" +arch=('i686' 'x86_64') +url="http://vdrift.net/" +license=('GPL') +depends=('bullet' 'curl' 'sdl_gfx' 'sdl_image' 'glew' 'libvorbis' 'vdrift-data') +makedepends=('scons' 'boost' 'asio') +source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-${pkgver//./-}.tar.bz2) +md5sums=('6f8806ab1be303e9e1e47522c9eee890') +install=vdrift.install + +build() { + cd "$srcdir"/$pkgname-${pkgver//./-} + + # select arch + if [ `uname -m` = "x86_64" ]; then + _sconsarch="a64" + else + _sconsarch="686" + fi + + #sed -i 's/glGenerateMipmap/glGenerateMipmapEXT/g' src/texture.cpp + #sed -i '/types.h/d' src/http.h + + # build and install + scons $MAKEFLAGS \ + "destdir"="$pkgdir" \ + "arch"=$_sconsarch \ + "release"=1 \ + "force_feedback"=1 \ + "prefix"=/usr \ + "datadir"=share/$pkgname/ \ + "extbullet"=1 +} + +package() { + cd "$srcdir"/$pkgname-${pkgver//./-} + + scons install + + # install .desktop file + install -Dm644 $pkgname.desktop "$pkgdir"/usr/share/applications/$pkgname.desktop + + # install icons + install -Dm644 data/textures/icons/vdrift-16x16.png \ + "$pkgdir"/usr/share/icons/hicolor/16x16/apps/vdrift.png + install -Dm644 data/textures/icons/vdrift-32x32.png \ + "$pkgdir"/usr/share/icons/hicolor/32x32/apps/vdrift.png + install -Dm644 data/textures/icons/vdrift-64x64.png \ + "$pkgdir"/usr/share/icons/hicolor/64x64/apps/vdrift.png + + rm -r $pkgdir/usr/share/vdrift +} +# vim: sw=2:ts=2 et: diff --git a/community-testing/vdrift/vdrift.desktop b/community-testing/vdrift/vdrift.desktop new file mode 100644 index 000000000..7078f0d9c --- /dev/null +++ b/community-testing/vdrift/vdrift.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Encoding=UTF-8 +Type=Application +Name=VDrift +Version=2009-06-15 +GenericName=Racing Simulation +Comment=An open source driving simulation made with drift racing in mind +Exec=vdrift +Icon=vdrift.png +Terminal=false +Categories=Game;Simulation; diff --git a/community-testing/vdrift/vdrift.install b/community-testing/vdrift/vdrift.install new file mode 100644 index 000000000..868f6717b --- /dev/null +++ b/community-testing/vdrift/vdrift.install @@ -0,0 +1,11 @@ +post_upgrade() { + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor +} + +post_install() { + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor +} + +post_remove() { + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor +} |