mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
59 lines
1.6 KiB
Bash
59 lines
1.6 KiB
Bash
#
|
|
# Games Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# Maintainer: Daniele Cocca <daniele.cocca [at] gmail.com>
|
|
# Contributor on AUR: Joshua Stiefer <facedelajunk@gmail.com>
|
|
|
|
pkgname=beret
|
|
pkgver=20131011
|
|
pkgrel=1
|
|
pkgdesc="A 2D puzzle platformer about a telekinetic scientist"
|
|
arch=('i686' 'x86_64')
|
|
url="http://kiwisauce.com/beret/"
|
|
license=('LGPL')
|
|
depends=('sdl' 'sdl_image' 'sdl_mixer' 'sdl_ttf')
|
|
makedepends=('git')
|
|
provides=(beret)
|
|
source=(beret-game
|
|
beret.svg)
|
|
categories=('games')
|
|
md5sums=('28e61b1f662efa8fb2f684636b167172'
|
|
'2e6639005f01e10f06b7b66c376e16a6')
|
|
|
|
_gitroot=git://gitorious.org/beret/beret.git
|
|
_gitname=beret
|
|
|
|
build() {
|
|
cd "$srcdir"
|
|
msg "Connecting to GIT server...."
|
|
|
|
if [[ -d "${_gitname}" ]]; then
|
|
cd "${_gitname}" && git pull origin
|
|
msg "The local files are updated."
|
|
else
|
|
git clone "${_gitroot}" "${_gitname}"
|
|
fi
|
|
|
|
msg "GIT checkout done or server timeout"
|
|
msg "Starting build..."
|
|
|
|
rm -rf "${srcdir}/${_gitname}-build"
|
|
git clone "${srcdir}/${_gitname}" "${srcdir}/${_gitname}-build"
|
|
cd "${srcdir}/${_gitname}-build"
|
|
|
|
sed -i "1,5 s#SDL#SDL/SDL#" *.c
|
|
sed -i "s/-lSDL_mixer/-lSDL_mixer -lm/" Makefile
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/${_gitname}-build"
|
|
install -D "${srcdir}/beret-game" "${pkgdir}/usr/bin/beret"
|
|
install -d "${pkgdir}/usr/share/beret"
|
|
cp -r {beret,images,music,rooms,sfx,AveriaSans-Regular.ttf} "$pkgdir/usr/share/beret/"
|
|
cd "${startdir}"
|
|
install -D -m644 beret.svg "${pkgdir}/usr/share/pixmaps/beret.svg"
|
|
install -D -m644 beret.desktop "${pkgdir}/usr/share/applications/beret.desktop"
|
|
|
|
}
|