[arch-commits] Commit in widelands/trunk (PKGBUILD)
Sven-Hendrik Haase
svenstaro at archlinux.org
Sun Nov 13 12:02:33 UTC 2016
Date: Sunday, November 13, 2016 @ 12:02:33
Author: svenstaro
Revision: 195500
upgpkg: widelands 19-1
upstream release build19
Modified:
widelands/trunk/PKGBUILD
----------+
PKGBUILD | 29 ++++++++++++++++-------------
1 file changed, 16 insertions(+), 13 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2016-11-13 11:10:11 UTC (rev 195499)
+++ PKGBUILD 2016-11-13 12:02:33 UTC (rev 195500)
@@ -4,20 +4,21 @@
# Contributor: Christoph Zeiler <rabyte*gmail>
pkgname=widelands
-pkgver=18
+pkgver=19
_realver=build${pkgver}
-pkgrel=6
+pkgrel=1
pkgdesc="A realtime strategy game with emphasis on economy and transport"
arch=('i686' 'x86_64')
url="http://widelands.org/"
license=('GPL')
-depends=('sdl_mixer' 'sdl_image' 'sdl_net' 'sdl_ttf' 'sdl_gfx' 'lua51' 'glew' 'python2' 'boost-libs')
+depends=('sdl2_mixer' 'sdl2_image' 'sdl2_net' 'sdl2_ttf' 'sdl2_gfx' 'lua51' 'glew' 'python2' 'boost-libs')
makedepends=('cmake' 'boost' 'mesa')
-source=("https://launchpad.net/widelands/${_realver}/build-${pkgver}/+download/$pkgname-$_realver-src.tar.bz2"
+replaces=('widelands-data')
+source=("https://launchpad.net/widelands/${_realver}/build${pkgver}/+download/$pkgname-$_realver-src.tar.bz2"
$pkgname.desktop
$pkgname.png
$pkgname.sh)
-md5sums=('01efe8db8cd25ffeb4f82b8b4ab6652e'
+md5sums=('0ef7ccf021b8001056739f755500366d'
'15820bf099fd6f16251fe70a75c534bb'
'3dfda7e9ca76ca00dd98d745d0ceb328'
'7cae50aba5ed0cd2cfeea79124637b46')
@@ -27,25 +28,27 @@
mkdir -p build/compile && cd build/compile
- cmake ../.. -DCMAKE_BUILD_TYPE=Release \
+ cmake ../.. \
+ -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
- -DWL_INSTALL_PREFIX=/usr \
- -DWL_INSTALL_DATADIR=share/$pkgname \
- -DWL_INSTALL_BINDIR=bin
+ -DWL_INSTALL_BASEDIR=/usr \
+ -DWL_INSTALL_DATADIR=share/$pkgname
make
}
package() {
- depends=(${depends[@]} 'widelands-data')
cd $srcdir/$pkgname-$_realver-src/build/compile
make DESTDIR="$pkgdir" install
- rm -r $pkgdir/usr/share/widelands/{campaigns,fonts,global,locale,maps,music,pics,scripting,sound,tribes,txts,worlds}
+ mkdir -p $pkgdir/usr/bin
+ mv $pkgdir/usr/{widelands,wl_map_object_info,wl_render_richtext,wl_map_info} $pkgdir/usr/bin
+ mv $pkgdir/usr/{VERSION,ChangeLog,CREDITS} $pkgdir/usr/share/widelands
+ mkdir -p $pkgdir/usr/share/licenses/$pkgname
+ mv $pkgdir/usr/COPYING $pkgdir/usr/share/licenses/$pkgname
+
# Install bin, icon and desktop file
- #install -Dm 755 src/$pkgname $pkgdir/usr/share/$pkgname/$pkgname
- #install -Dm 755 $srcdir/$pkgname.sh $pkgdir/usr/bin/$pkgname
install -Dm644 $srcdir/$pkgname.png $pkgdir/usr/share/pixmaps/$pkgname.png
install -Dm644 $srcdir/$pkgname.desktop $pkgdir/usr/share/applications/$pkgname.desktop
}
More information about the arch-commits
mailing list