mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 18:42:12 +08:00
38 lines
986 B
Bash
38 lines
986 B
Bash
#
|
|
# Games Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves gmail.com>
|
|
|
|
pkgname=toohardforyou
|
|
_pkgname=2H4U
|
|
pkgver=1.3
|
|
pkgrel=1
|
|
pkgdesc="Mix between a Tetris-like game and a wall breaker."
|
|
url="https://sourceforge.net/projects/toohardforyou"
|
|
license=('GPL')
|
|
arch=('i686' 'x86_64')
|
|
depends=('sdl_ttf' 'sdl_mixer' 'sdl_image' 'gcc-libs')
|
|
categories=('games')
|
|
source=("http://downloads.sourceforge.net/$pkgname/$_pkgname-${pkgver}_SOURCES.tar.gz")
|
|
md5sums=('e5a4b473c8f7cc3ed4acdf29513d6ab9')
|
|
install=(install.sh)
|
|
|
|
build() {
|
|
cd $srcdir/$_pkgname/scripts
|
|
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd $srcdir/$_pkgname
|
|
|
|
install -d $pkgdir/usr/share/$pkgname
|
|
cp -R 2H4U aide data help $pkgdir/usr/share/$pkgname/
|
|
|
|
mkdir -p $pkgdir/usr/bin
|
|
echo "#!/bin/sh" > $pkgdir/usr/bin/$pkgname
|
|
echo "cd /usr/share/$pkgname" >> $pkgdir/usr/bin/$pkgname
|
|
echo "./2H4U" >> $pkgdir/usr/bin/$pkgname
|
|
chmod +x $pkgdir/usr/bin/$pkgname
|
|
}
|