media-libs/allegro: use desktop-utils.exlib

This commit is contained in:
Julian Ospald 2016-05-26 15:12:46 +02:00
parent 4f95ab161e
commit 2653299577
No known key found for this signature in database
GPG Key ID: 511B62C09D50CD28

View File

@ -2,6 +2,7 @@
# Copyright 2016 Julian Ospald <hasufell@posteo.de> # Copyright 2016 Julian Ospald <hasufell@posteo.de>
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
require desktop-utils
require cmake [ api=2 out_of_source=false ] require cmake [ api=2 out_of_source=false ]
require sourceforge [ project=alleg suffix=tar.gz ] require sourceforge [ project=alleg suffix=tar.gz ]
@ -96,16 +97,8 @@ src_install() {
doins {keyboard,language,setup/setup}.dat doins {keyboard,language,setup/setup}.dat
insinto /usr/share/pixmaps insinto /usr/share/pixmaps
newins misc/icon.png ${PN}.png newins misc/icon.png ${PN}.png
insinto /usr/share/applications
hereins ${PN}-setup.desktop << EOF install_desktop_entry "Name=Allegro Setup" \
[Desktop Entry] "Exec=allegro-setup" "Categories=Settings;"
Name=Allegro Setup
Type=Application
Comment=${SUMMARY}
Exec=allegro-setup
TryExec=allegro-setup
Icon=allegro
Categories=Settings;
EOF
} }