add .desktop entry
This commit is contained in:
parent
5b10e8365a
commit
2aa5136d9c
1 changed files with 12 additions and 0 deletions
12
PKGBUILD
12
PKGBUILD
|
@ -10,6 +10,7 @@ license=('GPL3' 'BSD')
|
||||||
depends=('wine' 'bash')
|
depends=('wine' 'bash')
|
||||||
optdepends=('ttf-ms-win11: or font data on a windows partiion'
|
optdepends=('ttf-ms-win11: or font data on a windows partiion'
|
||||||
'ttf-ms-win11-auto: another choice')
|
'ttf-ms-win11-auto: another choice')
|
||||||
|
makedepends=('imagemagick' 'gendesk' 'icoutils')
|
||||||
source=('https://www.sumatrapdfreader.org/dl/rel/3.4.6/SumatraPDF-3.4.6-64.zip'
|
source=('https://www.sumatrapdfreader.org/dl/rel/3.4.6/SumatraPDF-3.4.6-64.zip'
|
||||||
'https://raw.githubusercontent.com/sumatrapdfreader/sumatrapdf/3.4.6rel/COPYING.BSD'
|
'https://raw.githubusercontent.com/sumatrapdfreader/sumatrapdf/3.4.6rel/COPYING.BSD'
|
||||||
'sumatrapdf.sh')
|
'sumatrapdf.sh')
|
||||||
|
@ -17,6 +18,14 @@ sha256sums=('2bb05aa8b74bc748bc1f6a2b6f6ec4ba22bd5b1eaeec767d0a7f97cfd436d40d'
|
||||||
'ff33648659aa06892ed13a731588a57006fafee2f848d35f70bf273a13cf9d27'
|
'ff33648659aa06892ed13a731588a57006fafee2f848d35f70bf273a13cf9d27'
|
||||||
'9113c6a594fe9b2f2dc800345396c97c3516d42d40bbc1ace6b34d805c0a3d7b')
|
'9113c6a594fe9b2f2dc800345396c97c3516d42d40bbc1ace6b34d805c0a3d7b')
|
||||||
|
|
||||||
|
build() {
|
||||||
|
wrestool -x -t 14 "SumatraPDF-${pkgver}-64.exe" > "${pkgname}.ico"
|
||||||
|
convert "${pkgname}.ico" "$srcdir/$pkgname.png"
|
||||||
|
rm $pkgname.ico
|
||||||
|
|
||||||
|
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"
|
||||||
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
# license
|
# license
|
||||||
install -Dm644 COPYING.BSD "${pkgdir}/usr/share/licenses/${pkgname}/COPYING.BSD"
|
install -Dm644 COPYING.BSD "${pkgdir}/usr/share/licenses/${pkgname}/COPYING.BSD"
|
||||||
|
@ -25,5 +34,8 @@ package() {
|
||||||
touch "$pkgdir/usr/share/$pkgname/SumatraPDF-settings.txt"
|
touch "$pkgdir/usr/share/$pkgname/SumatraPDF-settings.txt"
|
||||||
install -Dm755 "$srcdir/sumatrapdf.sh" "$pkgdir/usr/bin/$pkgname"
|
install -Dm755 "$srcdir/sumatrapdf.sh" "$pkgdir/usr/bin/$pkgname"
|
||||||
|
|
||||||
|
# desktop entry
|
||||||
|
install -Dm644 "$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"
|
||||||
|
|
||||||
echo "You may need MS fonts for non-latin characters."
|
echo "You may need MS fonts for non-latin characters."
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue