diff options
author | grimi | 2016-04-28 07:03:02 +0200 |
---|---|---|
committer | grimi | 2016-04-28 07:03:02 +0200 |
commit | 19fb37c6da04324cd541a828c8d2dd98ae23701c (patch) | |
tree | ddab28f29384e2b0f77f248a936d0d1633826617 /PKGBUILD | |
parent | 3b544f7cc3252689ce6770fd62680fc1ae89fb4e (diff) | |
download | aur-19fb37c6da04324cd541a828c8d2dd98ae23701c.tar.gz |
Upstream: 0.3.5.2
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 29 |
1 files changed, 17 insertions, 12 deletions
@@ -1,16 +1,15 @@ # Contributor: grimi <grimi at poczta dot fm> pkgname=mime-archpkg -pkgver=0.3.5.1 -pkgrel=2 +pkgver=0.3.5.2 +pkgrel=1 pkgdesc="mime type for archlinux packages" arch=('any') url="http://www.archlinux.org" license=('GPL') -depends=('shared-mime-info' 'xdg-utils') +depends=('shared-mime-info' 'gtk-update-icon-cache') makedepends=('librsvg' 'imagemagick') -install=$pkgname.install -source=($pkgname archpkg-{hicolor,gnome,Tango,oxygen,nuoveXT2,Faenza,Faience,NITRUX,Numix,breeze}.svgz) +source=($pkgname archpkg-{hicolor,gnome,Tango,oxygen,nuoveXT2,Faenza,Faience,NITRUX,Numix,breeze,FaenzaFlattr2-Zephyr,elementary}.svgz) md5sums=('1ff726f4e5e0dc7115aafb5f1b691455' 'ca7ce5e44d24dfd584586ed730c2bd04' 'f43f188fba6d3fb87ada25f3b213b0b9' @@ -21,7 +20,9 @@ md5sums=('1ff726f4e5e0dc7115aafb5f1b691455' 'ce4f6e2ab892776e4a921d88c29a9fc1' 'ef7d2bf5094388a7f6400811e56c4ccb' '1f3b9609f68415f1e7bcad3a144555e1' - 'ad3ea0380f0ec369fc0db5adc8181c63') + 'ad3ea0380f0ec369fc0db5adc8181c63' + 'c08b56cffe6d3604627868c058e0d76e' + '97e55cf040d5a4f2984929922baf468a') # comment that variable to install all icons @@ -36,15 +37,17 @@ package() { put_icons() { # args: $1 = icon name(nopref:archpkg, nosuff:.svgz) , $2 = sizes # args: $3 != [1,2]:YxY/folder; = 1:folder/Y , 2:special folder (size:folder_name) - # args: $4 = 1:svg suff, else png + # args: $4 = 1:svg suff, else png, $5 = 1:no scalable folder local i iname="application-x-archpkg" ipath="${pkgdir}/usr/share/icons" suff="png" if [[ ${4} == 1 ]]; then suff="svg"; fi if [[ -z ${INSTALLED_ONLY} ]] || [[ -n ${INSTALLED_ONLY} && -f /usr/share/icons/${1}/index.theme ]]; then - rsvg-convert -o archpkg.svg -f svg archpkg-${1}.svgz - if [[ ${3} == 1 ]]; then - install -Dm644 archpkg.svg "${ipath}"/${1}/mimetypes/scalable/${iname}.svg - else - install -Dm644 archpkg.svg "${ipath}"/${1}/scalable/mimetypes/${iname}.svg + if [[ $5 != 1 ]]; then + rsvg-convert -o archpkg.svg -f svg archpkg-${1}.svgz + if [[ ${3} == 1 ]]; then + install -Dm644 archpkg.svg "${ipath}"/${1}/mimetypes/scalable/${iname}.svg + else + install -Dm644 archpkg.svg "${ipath}"/${1}/scalable/mimetypes/${iname}.svg + fi fi for i in ${2}; do [[ ${3} != 2 ]] && local x=${i} || local x=${i%:*} @@ -74,6 +77,8 @@ package() { put_icons NITRUX '16 22 24 32' 1 put_icons Numix '16 22 24 32 64 128 256' 0 1 put_icons breeze '16 22 32 64' 1 1 + put_icons FaenzaFlattr2-Zephyr '' + put_icons elementary '16 24 32 48 64 128' 1 1 1 } |