fix desktop entry icon (install the image)
This commit is contained in:
parent
c9f7fd3be2
commit
c063c1e323
2 changed files with 9 additions and 5 deletions
2
.SRCINFO
2
.SRCINFO
|
@ -1,7 +1,7 @@
|
||||||
pkgbase = sumatrapdf
|
pkgbase = sumatrapdf
|
||||||
pkgdesc = PDF, eBook (epub, mobi), comic book (cbz/cbr), DjVu, XPS, CHM, image viewer for Windows. Small, fast, customizable, free.
|
pkgdesc = PDF, eBook (epub, mobi), comic book (cbz/cbr), DjVu, XPS, CHM, image viewer for Windows. Small, fast, customizable, free.
|
||||||
pkgver = 3.5.2
|
pkgver = 3.5.2
|
||||||
pkgrel = 3
|
pkgrel = 4
|
||||||
url = https://www.sumatrapdfreader.org/free-pdf-reader
|
url = https://www.sumatrapdfreader.org/free-pdf-reader
|
||||||
arch = x86_64
|
arch = x86_64
|
||||||
license = GPL3
|
license = GPL3
|
||||||
|
|
12
PKGBUILD
12
PKGBUILD
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
pkgname=sumatrapdf
|
pkgname=sumatrapdf
|
||||||
pkgver=3.5.2
|
pkgver=3.5.2
|
||||||
pkgrel=3
|
pkgrel=4
|
||||||
pkgdesc="PDF, eBook (epub, mobi), comic book (cbz/cbr), DjVu, XPS, CHM, image viewer for Windows. Small, fast, customizable, free."
|
pkgdesc="PDF, eBook (epub, mobi), comic book (cbz/cbr), DjVu, XPS, CHM, image viewer for Windows. Small, fast, customizable, free."
|
||||||
arch=('x86_64')
|
arch=('x86_64')
|
||||||
url='https://www.sumatrapdfreader.org/free-pdf-reader'
|
url='https://www.sumatrapdfreader.org/free-pdf-reader'
|
||||||
|
@ -22,8 +22,12 @@ build() {
|
||||||
wrestool -x -t 14 "SumatraPDF-${pkgver}-64.exe" > "${pkgname}.ico"
|
wrestool -x -t 14 "SumatraPDF-${pkgver}-64.exe" > "${pkgname}.ico"
|
||||||
convert "${pkgname}.ico" "$srcdir/$pkgname.png"
|
convert "${pkgname}.ico" "$srcdir/$pkgname.png"
|
||||||
rm $pkgname.ico
|
rm $pkgname.ico
|
||||||
|
mv "${pkgname}-3.png" "${pkgname}.png"
|
||||||
|
|
||||||
gendesk -n -f --pkgname "$pkgname" --pkgdesc "$pkgdesc" --name="SumatraPDF" --genericname "Application" --exec "/usr/bin/sumatrapdf" --icon "$srcdir/${pkgname}-3.png" --categories "Viewer;Wine;Graphics;Office" --mimetypes "application/pdf;application/epub+zip;application/x-mobipocket-ebook;image/vnd.djvu;image/vnd.djvu+multipage;application/vnd.ms-xpsdocument;application/oxps"
|
gendesk -n -f --pkgname "$pkgname" --pkgdesc "$pkgdesc" --name="SumatraPDF"\
|
||||||
|
--genericname "Application" --exec "/usr/bin/sumatrapdf"\
|
||||||
|
--categories "Viewer;Wine;Graphics;Office"\
|
||||||
|
--mimetypes "application/pdf;application/epub+zip;application/x-mobipocket-ebook;image/vnd.djvu;image/vnd.djvu+multipage;application/vnd.ms-xpsdocument;application/oxps"
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
|
@ -36,7 +40,7 @@ package() {
|
||||||
|
|
||||||
# desktop entry
|
# desktop entry
|
||||||
install -Dm644 "$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"
|
install -Dm644 "$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"
|
||||||
install -Dm644 "$srcdir/${pkgname}-3.png" "$pkgdir/usr/share/pixmaps/${pkgname}-3.png"
|
install -Dm644 "$srcdir/${pkgname}.png" "$pkgdir/usr/share/pixmaps/${pkgname}.png"
|
||||||
|
|
||||||
echo "You may need MS fonts for non-latin characters."
|
echo "You may need MS fonts for non-latin characters."
|
||||||
}
|
}
|
||||||
|
@ -50,5 +54,5 @@ package() {
|
||||||
# - you can remove it
|
# - you can remove it
|
||||||
# - change WINEPREFIX to config directory
|
# - change WINEPREFIX to config directory
|
||||||
# - you can delete ~/.sumatrapdf/
|
# - you can delete ~/.sumatrapdf/
|
||||||
# 3.5.2-3
|
# 3.5.2-3, -4
|
||||||
# - fix desktop entry icon
|
# - fix desktop entry icon
|
||||||
|
|
Loading…
Reference in a new issue