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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
# Maintainer: Brenton Horne <brentonhorne77 at gmail dot com>
pkgname=openra-ca-git
_pkgname=${pkgname/-git}
pkgver=2473.git.7fb6d71
pkgrel=1
pkgdesc="A mod of OpenRA that combines units from the official Red Alert and Tiberian Dawn mods"
arch=(x86_64)
url="https://github.com/Inq8/CAmod"
license=('GPL3')
install=openra-ca.install
depends=('mono' 'ttf-dejavu' 'openal' 'libgl' 'gtk-update-icon-cache'
'libaccounts-glib' 'libibus' 'libblockdev' 'libgexiv2'
'desktop-file-utils' 'xdg-utils' 'zenity' 'python-gobject')
makedepends=('dos2unix' 'git' 'unzip' 'msbuild')
provides=('openra-ca')
options=(!strip)
source=("git+${url}.git"
"openra-ca"
"openra-ca.appdata.xml"
"openra-ca.desktop")
md5sums=('SKIP'
'f13888474aeeb31acbe019d10d3d644c'
'1fcf493eabd3fbd6d0ccd387ecc446e6'
'fede5894ebe787ad39d8bdaac2efdc56')
pkgver() {
cd $srcdir/CAmod
no=$(git rev-list --count HEAD)
hash=$(git log | head -n 1 | cut -d ' ' -f 2 | head -c 7)
printf "${no}.git.${hash}"
}
prepare() {
cd $srcdir/CAmod
dos2unix *.md
printf "Success in converting docs...\n"
}
build() {
cd $srcdir/CAmod
make
make version VERSION="${pkgver}"
printf "Success in setting version\n"
}
package() {
cd $srcdir/CAmod
mkdir -p $pkgdir/usr/{lib/${_pkgname}/mods,bin,share/pixmaps,share/doc/packages/${_pkgname},share/applications,share/appdata}
install -dm775 $pkgdir/var/games/${_pkgname}
cp -r engine/* $pkgdir/usr/lib/${_pkgname}
cp -r mods/ca $pkgdir/usr/lib/${_pkgname}/mods
cp -r mod.config $pkgdir/usr/lib/${_pkgname}
sed -i -e "s|./engine\"|/usr/lib/${_pkgname}\"|g" $pkgdir/usr/lib/${_pkgname}/mod.config
cp -r engine/mods/{common,modcontent} $pkgdir/usr/lib/${_pkgname}/mods
cp -r engine/bin/{*.dll*,*.so} $pkgdir/usr/lib/${_pkgname}
cp -r engine/{glsl,lua,AUTHORS,COPYING,'global mix database.dat',VERSION} $pkgdir/usr/lib/${_pkgname}
install -Dm755 $srcdir/${_pkgname} $pkgdir/usr/bin/${_pkgname}
cp -r $srcdir/../${_pkgname}.appdata.xml $pkgdir/usr/share/appdata/${_pkgname}.appdata.xml
cp -r README.md $pkgdir/usr/share/doc/packages/${_pkgname}/README.md
install -Dm644 $srcdir/${_pkgname}.desktop $pkgdir/usr/share/applications/${_pkgname}.desktop
mkdir -p $pkgdir/usr/share/icons/hicolor/{16x16,32x32,48x48,64x64,128x128,256x256,512x512}/apps
for length in 16 32 48 64 128 256 512; do
size="${length}x${length}"
cp packaging/artwork/icon_${size}.png "$pkgdir/usr/share/icons/hicolor/${size}/apps/${pkgname}.png"
done
install -Dm644 packaging/artwork/icon_512x512.png ${pkgdir}/usr/share/pixmaps/${pkgname}.png
rm -rf $pkgdir/usr/lib/openra-rv/*{.txt,nunit,.yml,.xslt,.cmd,.md,Mono,Makefile,.sh,sln.*,Test,.mdb,.pdb,.ps1,.AS,packaging,thirdparty,engines,OpenRA.Mods}*
rm -rf $pkgdir/usr/lib/openra-rv/{mods/{all,ra,cnc,d2k,ts},OpenRA.Mods.*,OpenRA.Platforms.Default,OpenRA.Server,OpenRA.Game,OpenRA.Utility,Settings.StyleCop}
}
|