blob: 39ecc01f437798293750257be3154df541e10256 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# Maintainer: Joseph Ryan <josephryan3.14@gmail.com>
pkgname=mms-git
pkgver=1.1
pkgrel=1
pkgdesc="Graphical Micromouse simulator"
arch=('any')
url="https://github.com/mackorone/mms"
license=('MIT')
makedepends=('git' 'gendesk')
depends=('qt5-base' 'hicolor-icon-theme')
source=('git+https://github.com/mackorone/mms.git'
'git+https://github.com/micromouseonline/mazefiles.git'
'icon.png')
md5sums=('SKIP'
'SKIP'
'6c1e374d6af11b5a472970ac9ddad0c8')
_name='mms'
_categories='Simulator'
prepare() {
gendesk -n -f --pkgname mms --pkgdesc "$pkgdesc" --categories "$_categories"
sed -i 's/openglwidgets/opengl/' $srcdir/mms/src/mms.pro
}
build() {
cd $srcdir/mms/src
qmake && make
}
package() {
mkdir -p $pkgdir/usr/share/mms
mkdir -p $pkgdir/usr/bin/
mkdir -p $pkgdir/usr/share/icons/hicolor/64x64/apps/
install -Dm644 $srcdir/mms.desktop $pkgdir/usr/share/applications/mms.desktop
cp $srcdir/icon.png $pkgdir/usr/share/icons/hicolor/64x64/apps/mms.png
cp $srcdir/mazefiles/classic/* $pkgdir/usr/share/mms
cp $srcdir/mms/bin/mms $pkgdir/usr/bin/mms
chmod +x $pkgdir/usr/bin/mms
}
|