install desktop file, icons, docs and pixmaps

This commit is contained in:
Josef Miegl 2018-07-17 22:47:50 +02:00
parent 92ac1bebdf
commit 83666e3956
2 changed files with 25 additions and 2 deletions

View File

@ -1,7 +1,7 @@
pkgbase = butt pkgbase = butt
pkgdesc = butt (broadcast using this tool) is an easy to use, multi OS streaming tool pkgdesc = butt (broadcast using this tool) is an easy to use, multi OS streaming tool
pkgver = 0.1.16 pkgver = 0.1.16
pkgrel = 2 pkgrel = 3
url = http://butt.sourceforge.net/ url = http://butt.sourceforge.net/
arch = i686 arch = i686
arch = x86_64 arch = x86_64

View File

@ -4,7 +4,7 @@
pkgname=butt pkgname=butt
pkgver=0.1.16 pkgver=0.1.16
pkgrel=2 pkgrel=3
pkgdesc="butt (broadcast using this tool) is an easy to use, multi OS streaming tool" pkgdesc="butt (broadcast using this tool) is an easy to use, multi OS streaming tool"
arch=('i686' 'x86_64') arch=('i686' 'x86_64')
license=('GPL2') license=('GPL2')
@ -31,4 +31,27 @@ build() {
package() { package() {
cd "$pkgname-$pkgver" cd "$pkgname-$pkgver"
make DESTDIR="$pkgdir/" install make DESTDIR="$pkgdir/" install
# Desktop file
# Category "Sound" is invalid, reaplce it with "AudioVideo;Audio"
desktop-file-install --remove-category="Sound" --add-category="AudioVideo;Audio" --dir="$pkgdir/usr/share/applications" "icons/$pkgname.desktop"
# Icons
for size in 16 22 24 32 48 64 96 128 256 512; do
format="${size}x${size}"
install -D -m644 "icons/icon_${format}.png" "$pkgdir/usr/share/icons/hicolor/${format}/apps/$pkgname.png"
done
install -D -m644 "icons/icon_scalable.svg" "$pkgdir/usr/share/icons/hicolor/scalable/apps/$pkgname.svg"
# Documentation
for doc in AUTHORS ChangeLog KNOWN_BUGS NEWS README THANKS; do
install -D -m644 "${doc}" "$pkgdir/usr/share/doc/$pkgname/${doc}"
done
# Pixmaps
for file in usr/share/pixmaps/"$pkgname"*; do
filename=`basename "${file}"`
install -D -m644 "${file}" "$pkgdir/usr/share/pixmaps/${filename}"
done
} }