diff options
author | Andreas Grapentin <andreas@grapentin.org> | 2018-02-04 16:22:41 +0100 |
---|---|---|
committer | Andreas Grapentin <andreas@grapentin.org> | 2018-02-04 16:22:41 +0100 |
commit | a62517453d40836914dd8acf3efc1aad4d7bdd93 (patch) | |
tree | e31ab513afb89b65eea06dee565491959289aad9 | |
parent | 6aa639a8be70bf0a49fcee1ab9a64f7b21fcd457 (diff) | |
download | abslibre-a62517453d40836914dd8acf3efc1aad4d7bdd93.tar.gz abslibre-a62517453d40836914dd8acf3efc1aad4d7bdd93.tar.bz2 abslibre-a62517453d40836914dd8acf3efc1aad4d7bdd93.zip |
pcr/nexuiz-data: cleanup and rebuild
-rw-r--r-- | pcr/nexuiz-data/PKGBUILD | 55 |
1 files changed, 21 insertions, 34 deletions
diff --git a/pcr/nexuiz-data/PKGBUILD b/pcr/nexuiz-data/PKGBUILD index c6ab172b7..2f8aca6bc 100644 --- a/pcr/nexuiz-data/PKGBUILD +++ b/pcr/nexuiz-data/PKGBUILD @@ -1,42 +1,29 @@ -# Maintainer (Arch): Sven-Hendrik Haase <sh@lutzhaase.com> -# Contributor (Arch): Xyne -# Contributor (Arch): Rick Chen (stuffcorpse) -# Contributor (Arch): Jaroslaw Swierczynski <swiergot@aur.archlinux.org> -# Contributor (Arch): Roman Kyrylych <Roman.Kyrylych@gmail.com> -# Contributor (Arch): Camille Moncelier <pix@devlife.org> +# Maintainer (AUR): Andrei Alexeyev <akari@alienslab.net> + +# parabola changes and rationale: +# no changes. pkgname=nexuiz-data -_pkgsourcename=nexuiz pkgver=2.5.2 -_zipver=252 -pkgrel=3.1 +pkgrel=1 +epoch=1 arch=('any') -pkgdesc="Nexuiz game data" -conflicts=('nexuiz<2.5.1-3') -url="http://www.alientrap.org/games/nexuiz" +pkgdesc="Fast-paced multiplayer first-person shooter (data files only)." +url="http://www.alientrap.com/games/nexuiz/" license=("GPL") -source=(http://downloads.sourceforge.net/${_pkgsourcename}/${_pkgsourcename}-${_zipver}.zip) -md5sums=('d750bc328e58df8492f8d88bdcf818cb') +depends=() +makedepends=('unzip') +conflicts=('nexuiz') +_zipfile="${pkgname%%-data}-${pkgver//./}.zip" +source=("https://downloads.sourceforge.net/project/nexuiz/NexuizRelease/Nexuiz%20${pkgver}/${_zipfile}") +noextract=("${_zipfile}") +sha256sums=('a5e27ebcc9775c4a490d0d3536c32e4a8f8f96b038c0b6a78d1823c37a962000') -package() { - _nexdir="$pkgdir/opt/nexuiz" - - _install_dir $srcdir/Nexuiz/Docs $_nexdir/docs - _install_dir $srcdir/Nexuiz/data $_nexdir/data - _install_dir $srcdir/Nexuiz/havoc $_nexdir/havoc - _install_dir $srcdir/Nexuiz/server $_nexdir/server - - find $_nexdir/server -name "*_windows.bat" -exec rm {} \; - find $_nexdir/server -name "*_mac.sh" -exec rm {} \; -} +# Prevent compressing final package +PKGEXT='.pkg.tar' -function _install_dir { - _src_dir=$1 - _dest_dir=$2 - _n=${#_src_dir} - for _file in $(find $_src_dir -type f) - do - _dest_file=${_dest_dir}${_file:$_n} - install -Dm644 $_file $_dest_file - done +package() { + install -dm755 "${pkgdir}/usr/share/nexuiz" + unzip -j "${_zipfile}" Nexuiz/data/common-spog.pk3 Nexuiz/data/data20091001.pk3 -d "${pkgdir}/usr/share/nexuiz/data" + find "${pkgdir}/usr/share/nexuiz" -type f -exec chmod 644 {} \; } |