Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Chakra
Packages
desktop
Commits
00af656a
Commit
00af656a
authored
Jun 11, 2013
by
Adrián Chaves Fernández (Gallaecio)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added desktop integration and translations to Unvanquished, and removed unneeded files.
parent
f583189a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
2 deletions
+22
-2
unvanquished/PKGBUILD
unvanquished/PKGBUILD
+22
-2
No files found.
unvanquished/PKGBUILD
View file @
00af656a
...
...
@@ -8,7 +8,7 @@
pkgname
=
unvanquished
_pkgname
=
Unvanquished
pkgver
=
0.16.0
pkgrel
=
1
pkgrel
=
2
pkgdesc
=
"A team-based fps/rts hybrid game which pits aliens against humans"
arch
=(
'x86_64'
'i686'
)
url
=
"http://www.unvanquished.net"
...
...
@@ -19,7 +19,7 @@ provides=('unvanquished')
conflicts
=(
'unvanquished-git'
)
options
=(
'emptydirs'
)
source
=(
"https://github.com/
${
_pkgname
}
/
${
_pkgname
}
/archive/v
${
pkgver
}
.tar.gz"
)
md5sums
=(
'
b68e498f1eb53b38f73dff572a3e3eba
'
)
md5sums
=(
'
dbc1ba410d9058410c7227694b25f80b
'
)
build
()
{
cd
${
srcdir
}
/
${
_pkgname
}
-
${
pkgver
}
...
...
@@ -37,9 +37,29 @@ package() {
cd
${
srcdir
}
/
${
_pkgname
}
-
${
pkgver
}
/build
make
DESTDIR
=
${
pkgdir
}
install
# Executable.
install
-d
$pkgdir
/usr/bin
echo
"#!/bin/bash"
>
$pkgdir
/usr/bin/
$pkgname
echo
"cd /usr/share/
$pkgname
"
>>
$pkgdir
/usr/bin/
$pkgname
echo
"./daemon
$@
"
>>
$pkgdir
/usr/bin/
$pkgname
chmod
+x
$pkgdir
/usr/bin/
$pkgname
# Desktop integration.
cd
${
srcdir
}
/
${
_pkgname
}
-
${
pkgver
}
/debian
mkdir
-p
$pkgdir
/usr/share/applications
sed
-e
"s#/usr/games/
$pkgname
#/usr/bin/
$pkgname
#"
-i
$pkgname
.desktop
install
-m
644
$pkgname
.desktop
$pkgdir
/usr/share/applications/
$pkgname
.desktop
mkdir
-p
$pkgdir
/usr/share/pixmaps
install
-m
644
$pkgname
.png
$pkgdir
/usr/share/pixmaps/
$pkgname
.png
# Translations.
cd
${
srcdir
}
/
${
_pkgname
}
-
${
pkgver
}
/main
mkdir
-p
$pkgdir
/usr/share/
$pkgname
/main
cp
-R
translation
$pkgdir
/usr/share/
$pkgname
/main/translation
rm
-rf
$pkgdir
/usr/share/
$pkgname
/main/translation/
*
.pot
# Clean unneeded files.
rm
-rf
$pkgdir
/usr/share/
$pkgname
/main/vm
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment