games-fps/sauerbraten: use desktop-utils.exlib

This commit is contained in:
Julian Ospald 2016-05-26 14:41:44 +02:00
parent 9c32740593
commit be94cca2dc
No known key found for this signature in database
GPG Key ID: 511B62C09D50CD28

View File

@ -3,7 +3,7 @@
EDITION="collect_edition" EDITION="collect_edition"
require gtk-icon-cache \ require desktop-utils gtk-icon-cache \
sourceforge [ pnv=sauerbraten_${PV//./_}_${EDITION}_linux ] sourceforge [ pnv=sauerbraten_${PV//./_}_${EDITION}_linux ]
require openrc-service [ openrc_confd_files=[ "${FILES}"/openrc/confd ] ] require openrc-service [ openrc_confd_files=[ "${FILES}"/openrc/confd ] ]
@ -67,17 +67,7 @@ EOF
# Create menu entry # Create menu entry
insinto /usr/share/icons/hicolor/256x256/apps insinto /usr/share/icons/hicolor/256x256/apps
newins data/cube.png ${PN}.png newins data/cube.png ${PN}.png
insinto /usr/share/applications install_desktop_entry "Name=Cube 2: Sauerbraten" "Exec=${PN}-client"
hereins ${PN}.desktop <<EOF
[Desktop Entry]
Name=Cube 2: Sauerbraten
Type=Application
Comment=${SUMMARY}
Exec=${PN}-client
TryExec=${PN}-client
Icon=${PN}
Categories=Game;ActionGame;
EOF
# Install the server config files # Install the server config files
insinto "${STATEDIR}" insinto "${STATEDIR}"