mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
new version
This commit is contained in:
parent
b6ba6c67c9
commit
2c325e5a87
@ -4,26 +4,26 @@
|
|||||||
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves gmail.com>
|
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves gmail.com>
|
||||||
|
|
||||||
pkgname=xmoto
|
pkgname=xmoto
|
||||||
pkgver=0.5.9
|
pkgver=0.5.10
|
||||||
pkgrel=2
|
pkgrel=1
|
||||||
pkgdesc="A challenging 2D motocross platform game, where physics play an important role."
|
pkgdesc="A challenging 2D motocross platform game, where physics play an important role."
|
||||||
arch=('i686' 'x86_64')
|
arch=('i686' 'x86_64')
|
||||||
url="http://xmoto.tuxfamily.org"
|
url="http://xmoto.tuxfamily.org"
|
||||||
license=('GPL')
|
license=('GPL')
|
||||||
depends=('bzip2' 'libjpeg' 'libpng' 'lua' 'sdl_mixer' 'ode' 'curl'
|
depends=('bzip2' 'libjpeg' 'libpng' 'lua' 'sdl_mixer' 'ode' 'curl'
|
||||||
'mesa' 'sqlite3' 'sdl_ttf' 'desktop-file-utils' 'sdl_net' 'libxdg-basedir')
|
'mesa' 'sqlite3' 'sdl_ttf' 'desktop-file-utils' 'sdl_net' 'libxdg-basedir')
|
||||||
|
makedepends=('desktop-file-utils')
|
||||||
categories=('games')
|
categories=('games')
|
||||||
source=("http://download.tuxfamily.org/$pkgname/$pkgname/$pkgver/$pkgname-$pkgver-src.tar.gz"
|
source=("http://download.tuxfamily.org/${pkgname}/${pkgname}/${pkgver}/${pkgname}-${pkgver}-src.tar.gz"
|
||||||
|
"${pkgname}-${pkgver}-libpng.patch::https://projects.archlinux.org/svntogit/community.git/plain/trunk/${pkgname}-${pkgver}-libpng15.patch?h=packages/${pkgname}")
|
||||||
"$pkgname-$pkgver-libpng.patch::https://projects.archlinux.org/svntogit/community.git/plain/trunk/$pkgname-$pkgver-libpng15.patch?h=packages/$pkgname")
|
sha256sums=('2d2438e4685aa5fc1aa9f73bfbe26893d7fc97fadd6e1cc9fdb09c8d16df9e1e'
|
||||||
md5sums=('d8d6b7a405139530650b8a9ae2ea6df3'
|
'06615615d5e27219bb1c9c74418eeac09dbbe177cbb56471bd068759b82972cd')
|
||||||
'454af72fa4daba55aa43a08bb1a30714')
|
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd $srcdir/$pkgname-$pkgver
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
||||||
|
|
||||||
# Patches
|
# Patches
|
||||||
patch -Np1 -i "${srcdir}/$pkgname-$pkgver-libpng.patch"
|
patch -Np1 -i "${srcdir}/${pkgname}-${pkgver}-libpng.patch"
|
||||||
sed \
|
sed \
|
||||||
-e '/#include <vector>/ a\
|
-e '/#include <vector>/ a\
|
||||||
#include <unistd.h>' \
|
#include <unistd.h>' \
|
||||||
@ -38,10 +38,16 @@ build() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd $srcdir/$pkgname-$pkgver
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
||||||
|
|
||||||
make DESTDIR=$pkgdir mangdir=/usr/share/man/man6 install
|
make DESTDIR="${pkgdir}" mangdir=/usr/share/man/man6 install
|
||||||
|
|
||||||
install -Dm0644 $srcdir/$pkgname-$pkgver/extra/xmoto.xpm \
|
# install desktop file
|
||||||
$pkgdir/usr/share/pixmaps/xmoto.xpm
|
desktop-file-install --set-key=Icon --set-value=xmoto -m 0644 \
|
||||||
|
--dir="${pkgdir}/usr/share/applications" \
|
||||||
|
"${srcdir}/${pkgname}-${pkgver}/extra/xmoto.desktop"
|
||||||
|
|
||||||
|
# install icon
|
||||||
|
install -Dm0644 "${srcdir}/${pkgname}-${pkgver}/extra/xmoto.xpm" \
|
||||||
|
"${pkgdir}/usr/share/pixmaps/xmoto.xpm"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user