mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
Added PainTown.
This commit is contained in:
parent
8b7e36d53e
commit
df88989b11
44
paintown/PKGBUILD
Normal file
44
paintown/PKGBUILD
Normal file
@ -0,0 +1,44 @@
|
||||
pkgname=paintown
|
||||
pkgver=3.5.0
|
||||
pkgrel=1
|
||||
pkgdesc="An open source fighting game in the same genre as Streets of Rage and Teenage Mutant Ninja Turtles."
|
||||
arch=('i686' 'x86_64')
|
||||
url="http://paintown.sourceforge.net/"
|
||||
license=('GPL')
|
||||
depends=('python2' 'freetype2' 'allegro')
|
||||
makedepends=('cmake')
|
||||
#install=paintown.install
|
||||
source=(http://downloads.sourceforge.net/sourceforge/paintown/$pkgname-$pkgver.tar.gz
|
||||
paintown.png
|
||||
paintown.desktop)
|
||||
md5sums=('58de3c1cd8aea7e3117ec97f5e169a23'
|
||||
'ed547f1377212ea079cf9b0a1ad2d587'
|
||||
'4144c695ad0bc4621e96ef9760f33b19')
|
||||
|
||||
build() {
|
||||
cd "$srcdir/$pkgname-$pkgver"
|
||||
# fix python2 header
|
||||
for file in $(find . -name '*.py' -print); do
|
||||
sed -i "s#/usr/bin/python#/usr/bin/env python2#" $file
|
||||
done
|
||||
# not needed as cmake is used instead of scons
|
||||
# sed -i "s#python#python2#" Makefile
|
||||
mkdir -p build
|
||||
cd build
|
||||
cmake .. || return 1
|
||||
make -j2 || return 1
|
||||
cp bin/paintown ..
|
||||
cd ..
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$srcdir/$pkgname-$pkgver"
|
||||
mkdir -p $pkgdir/usr/{bin,share/{paintown,pixmaps,applications,licenses/paintown}}
|
||||
sh install.sh -d $pkgdir/usr/share/paintown -b $pkgdir/usr/bin
|
||||
# correct the gnerated file to remove the wrong path (because $pkgdir/usr/bin is written in the file)
|
||||
sed -i "s#$pkgdir##g" $pkgdir/usr/bin/paintown
|
||||
install -m644 $srcdir/paintown.desktop $pkgdir/usr/share/applications/paintown.desktop
|
||||
install -m644 $srcdir/paintown.png $pkgdir/usr/share/pixmaps/paintown.png
|
||||
install -m644 LICENSE $pkgdir/usr/share/licenses/paintown/LICENSE
|
||||
install -m644 LEGAL $pkgdir/usr/share/licenses/paintown/LEGAL
|
||||
}
|
8
paintown/paintown.desktop
Normal file
8
paintown/paintown.desktop
Normal file
@ -0,0 +1,8 @@
|
||||
[Desktop Entry]
|
||||
Name=PainTown
|
||||
Comment=Paintown is an open source fighting game in the same genre as Streets of Rage and Teenage Mutant Ninja Turtles.
|
||||
Exec=paintown
|
||||
Icon=paintown.png
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Categories=Application;Game;
|
BIN
paintown/paintown.png
Normal file
BIN
paintown/paintown.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 14 KiB |
Loading…
Reference in New Issue
Block a user