diff options
author | James Crompton | 2016-03-04 16:57:04 +0100 |
---|---|---|
committer | James Crompton | 2016-03-04 16:57:04 +0100 |
commit | b3ff1be9cecb0a16bcaaf4d39549607ea59ba170 (patch) | |
tree | 9eec20485034668390a70cc1613b7260f46e9423 | |
parent | fbc27d40605ac472b96da8bb5d4c104b6c8d290c (diff) | |
download | aur-b3ff1be9cecb0a16bcaaf4d39549607ea59ba170.tar.gz |
Include all icons and mimetype in package
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 19 | ||||
-rwxr-xr-x[-rw-r--r--] | cewe-fotobuch.desktop | 4 |
3 files changed, 20 insertions, 7 deletions
@@ -1,7 +1,7 @@ pkgbase = cewe-fotobuch pkgdesc = an offline client for creating photobooks, uploading and ordering them at cewe.de pkgver = 6.1.3 - pkgrel = 1 + pkgrel = 2 url = http://www.cewe.de/ install = cewe-fotobuch.install arch = i686 @@ -15,7 +15,7 @@ pkgbase = cewe-fotobuch source = http://dls.photoprintit.de/download/Data/16523/hps/setup_Mein_CEWE_FOTOBUCH.tgz source = cewe-fotobuch.desktop md5sums = 9197c2551c471da202de3f0652eba324 - md5sums = 481ac82e95881d2878da3973d29095f6 + md5sums = ebc303204c0aecab97ecd53627f7eb7d pkgname = cewe-fotobuch @@ -3,7 +3,7 @@ pkgname=cewe-fotobuch pkgver=6.1.3 -pkgrel=1 +pkgrel=2 pkgdesc="an offline client for creating photobooks, uploading and ordering them at cewe.de" url="http://www.cewe.de/" license=("custom:eula") @@ -14,7 +14,7 @@ source=("http://dls.photoprintit.de/download/Data/16523/hps/setup_Mein_CEWE_FOTO "cewe-fotobuch.desktop") install=cewe-fotobuch.install md5sums=('9197c2551c471da202de3f0652eba324' - '481ac82e95881d2878da3973d29095f6') + 'ebc303204c0aecab97ecd53627f7eb7d') _KEYACCID=16523 _CLIENTID=18 @@ -31,9 +31,20 @@ build() { # done } package() { - mkdir -p $pkgdir/usr/{share/$pkgname,bin} - cd $srcdir + # put icons and mimetype in the right place + export XDG_UTILS_INSTALL_MODE=system + export XDG_DATA_DIRS="$pkgdir/usr/share:" + mkdir -p $pkgdir/usr/{share/$pkgname,bin,share/icons/hicolor,share/mime/packages} + + cd $srcdir + # don't install broken desktop file or put it on current user's desktop + sed -i 's/createDesktopShortcuts();/#createDesktopShortcuts();/' ./install.pl + ./install.pl --installDir=$pkgdir/usr/share/cewe-fotobuch --workingDir=$srcdir -k -v + + # remove unneeded mime cache files (leave directories) + rm $pkgdir/usr/share/mime/* &> /dev/null || true + # # copy EULA # install -D -m644 $srcdir/EULA.txt $pkgdir/usr/share/$pkgname/EULA.txt || return 1 # create startup script diff --git a/cewe-fotobuch.desktop b/cewe-fotobuch.desktop index 0f295bf4f854..d0149258c192 100644..100755 --- a/cewe-fotobuch.desktop +++ b/cewe-fotobuch.desktop @@ -1,8 +1,10 @@ [Desktop Entry] Type=Application Name=CeWe Fotobuch +Name[de]=CeWe Fotobuch Comment=Offline client for cewe.de service Exec=cewe-fotobuch -Icon=cewe-fotobuch +Icon=hps-16523 StartupNotify=true Categories=Graphics;Photography; +MimeType=application/x-hps-mcf |