Fix desktop file installation, add file hash

This commit is contained in:
Josef Miegl 2018-12-27 21:02:08 +01:00
parent 09e2fb2db4
commit 474630abba
2 changed files with 3 additions and 4 deletions

View File

@ -19,7 +19,7 @@ pkgbase = butt
depends = libsamplerate depends = libsamplerate
optdepends = icecast optdepends = icecast
source = http://sourceforge.net/projects/butt/files/butt/butt-0.1.17/butt-0.1.17.tar.gz source = http://sourceforge.net/projects/butt/files/butt/butt-0.1.17/butt-0.1.17.tar.gz
sha256sums = SKIP sha256sums = afe9596b1d9ef38d2fde1f3255e5a3a12b206c73c8e6601e37cccb07e67ae33d
pkgname = butt pkgname = butt

View File

@ -12,7 +12,7 @@ url="http://butt.sourceforge.net/"
depends=('fltk' 'libpng12' 'portaudio' 'libfdk-aac' 'libvorbis' 'libogg' 'lame' 'flac' 'opus' 'libsamplerate') depends=('fltk' 'libpng12' 'portaudio' 'libfdk-aac' 'libvorbis' 'libogg' 'lame' 'flac' 'opus' 'libsamplerate')
optdepends=('icecast') optdepends=('icecast')
source=("http://sourceforge.net/projects/$pkgname/files/$pkgname/$pkgname-$pkgver/$pkgname-$pkgver.tar.gz") source=("http://sourceforge.net/projects/$pkgname/files/$pkgname/$pkgname-$pkgver/$pkgname-$pkgver.tar.gz")
sha256sums=('SKIP') sha256sums=('afe9596b1d9ef38d2fde1f3255e5a3a12b206c73c8e6601e37cccb07e67ae33d')
build() { build() {
cd "$pkgname-$pkgver" cd "$pkgname-$pkgver"
@ -25,8 +25,7 @@ package() {
make DESTDIR="$pkgdir/" install make DESTDIR="$pkgdir/" install
# Desktop file # Desktop file
# Category "Sound" is invalid, replace it with "AudioVideo;Audio" install -D -m644 "usr/share/applications/$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"
desktop-file-install --remove-category="Sound" --add-category="AudioVideo;Audio" --dir="$pkgdir/usr/share/applications" "icons/$pkgname.desktop"
# Icons # Icons
for size in 16 22 24 32 48 64 96 128 256 512; do for size in 16 22 24 32 48 64 96 128 256 512; do