mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
0af05b343a
renamed checksums to kdeapps.sums added for all packages the pgp signature for new/removed packages check: https://community.kde.org/Applications/16.12_Release_Notes#Tarballs_that_we_have_split
54 lines
1.5 KiB
Bash
54 lines
1.5 KiB
Bash
pkgname=teeworlds
|
|
pkgver=0.6.2
|
|
_bamver=0.4.0
|
|
pkgrel=1
|
|
pkgdesc="A multiplayer 2D shooter"
|
|
arch=('i686' 'x86_64')
|
|
url="http://teeworlds.com"
|
|
license=('custom')
|
|
depends=('alsa-lib' 'freetype2' 'mesa' 'sdl')
|
|
makedepends=('python2')
|
|
categories=('games')
|
|
source=(http://www.teeworlds.com/files/${pkgname}-${pkgver}-source.tar.gz
|
|
https://github.com/downloads/matricks/bam/bam-${_bamver}.tar.bz2
|
|
teeworlds.desktop
|
|
teeworlds.png)
|
|
md5sums=('649f6c05a7b117096b238c07062edc39'
|
|
'f8b62ad553c3615a725a034df4fb4257'
|
|
'3944aaf7a8c19a83510b2b39c4cddf5f'
|
|
'44f39e398409232a0e0a431ed46d8cc8')
|
|
|
|
build() {
|
|
# Build bam (used to build teewars)
|
|
# Now it is released separately I should make a separate package...
|
|
cd ${srcdir}/bam-${_bamver}
|
|
./make_unix.sh
|
|
|
|
# Build teeworlds
|
|
cd ${srcdir}/${pkgname}-*-source
|
|
|
|
# Use Python 2
|
|
sed -i 's/python /python2 /' bam.lua
|
|
|
|
../bam-${_bamver}/bam server_release client_release
|
|
}
|
|
|
|
package() {
|
|
cd ${srcdir}/${pkgname}-*-source
|
|
|
|
# Install data files
|
|
mkdir -p ${pkgdir}/usr/share/${pkgname}/data
|
|
cp -r data/* ${pkgdir}/usr/share/${pkgname}/data
|
|
|
|
install -Dm755 ${pkgname} ${pkgdir}/usr/bin/${pkgname}
|
|
install -Dm755 ${pkgname}_srv ${pkgdir}/usr/bin/${pkgname}_srv
|
|
|
|
install -Dm644 ${srcdir}/${pkgname}.desktop \
|
|
${pkgdir}/usr/share/applications/${pkgname}.desktop
|
|
install -Dm644 ${srcdir}/${pkgname}.png \
|
|
${pkgdir}/usr/share/pixmaps/${pkgname}.png
|
|
|
|
install -Dm644 license.txt \
|
|
${pkgdir}/usr/share/licenses/${pkgname}/license.txt
|
|
}
|