summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorgrimi2017-03-17 08:35:58 +0100
committergrimi2017-03-17 08:35:58 +0100
commit2777648793726774cb6a77f64186df57a1c6709e (patch)
tree048c16cb8d6c401d0d94712d76d6c56b0bc450c5
parent0c991c0fb1dfefad6ed2e53ffbf8f60f28f51f1f (diff)
downloadaur-2777648793726774cb6a77f64186df57a1c6709e.tar.gz
Fix: ignore linked folders
-rw-r--r--.SRCINFO30
-rw-r--r--PKGBUILD30
-rw-r--r--mime-archpkg.sh19
3 files changed, 46 insertions, 33 deletions
diff --git a/.SRCINFO b/.SRCINFO
index f69fcde1fe5..31cb0aa2135 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = mime-archpkg
pkgdesc = mime type for archlinux packages
- pkgver = 0.3.6.2
+ pkgver = 0.3.6.3
pkgrel = 1
url = http://www.archlinux.org
install = mime-archpkg.install
@@ -24,20 +24,20 @@ pkgbase = mime-archpkg
source = breeze.svgz
source = FaenzaFlattr2-Zephyr.svgz
source = elementary.svgz
- sha1sums = 93b739fec9667c80837d38ff67d4a69faf43e4e8
- sha1sums = 78f66dd1aea062bbe8a7ac948b66e9914aeaac9d
- sha1sums = ef315dab623a0539dd1919bf983473150de1002c
- sha1sums = d645b34f08693c5e9814f0f023288b780dca7471
- sha1sums = 59bf9af96487b4d90926acfd6df9242504465b58
- sha1sums = b33f4c138ac14edfab8e1b2781a93a67ff006a7a
- sha1sums = 5e55d197549a119d21d48f3e29c6d9c04b4f45a1
- sha1sums = 00fd22f20920efa8e76e37e53485d3aaf7c38582
- sha1sums = 8cf65c3d546dc3e3ba548ef1c0ff0c08f9cf01f8
- sha1sums = f7e10f36d1443821130fd7e0936ea162d32870ce
- sha1sums = e7800e9ffc3760dd89ba49e4fba4d67c1e78b12b
- sha1sums = f871d58606edd0d3155ef1a6dfc7e712e7ae0e76
- sha1sums = 5d1640317226f5a43459fbac43309a1d660db012
- sha1sums = bc08bda973ee77c97a6932548523d69822e26ee0
+ sha256sums = e3fc45b1121fa845a245c115704715ec0b6a17860a507202cc5e1b02d01c797b
+ sha256sums = 8fca736b01fc6d33759c87efc88b050851ff5876d286ce242b2ebb6b30326204
+ sha256sums = fc9b1f43e5993e994707285d89e0da28be48b69046f4cac68578a8d0beef4653
+ sha256sums = a59eb69c6fcdf7e8017c2596384cff0635dee46e3db5949370de766273451a85
+ sha256sums = 0a4951fd15afb85229ee17629686f914b5e5ed0583846dde2350e0c247007975
+ sha256sums = 1249231b458fad9901e8958e1bcaa119a79bbab0303ff7eaa27ad52c4ae5a77c
+ sha256sums = 4b9d0454dc82bf6475b70aaee1733236ef78afe821467a60080ddeaf3c13d9c2
+ sha256sums = 2e475b3ce9bcf96510e83748eaa45b918eded89278f232570b5eb558c5fbb4fa
+ sha256sums = 7739338376904d9d93e5aa7a678b7da8314cb3022e4bc6938af6353cd4e9e300
+ sha256sums = 52c6986309a98e0c85ad717c867d9d9a4772ce36c3d5d5ad94dda6fb23b5c749
+ sha256sums = a26a86877f36d7ba61851659871ce6461a86b3004d3270b465931a611b64e0ef
+ sha256sums = 8af276bc4afecede207a6742a5ef9320155650364339af183f9d47e1614c30a7
+ sha256sums = 3f0177c13377ad94745ec0f0324ab5fb58eeccac4e4b56695ac0f2113fb4d5bb
+ sha256sums = a99c2b48796d6f8299867034242c69fbddef4c380df0b68a678ee2727c841f29
pkgname = mime-archpkg
diff --git a/PKGBUILD b/PKGBUILD
index 8688ee0ba9a..4781a2102ab 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Contributor: grimi <grimi at poczta dot fm>
pkgname=mime-archpkg
-pkgver=0.3.6.2
+pkgver=0.3.6.3
pkgrel=1
pkgdesc="mime type for archlinux packages"
arch=('any')
@@ -10,20 +10,20 @@ license=('GPL')
depends=('shared-mime-info' 'gtk-update-icon-cache' 'librsvg' 'imagemagick')
install=${pkgname}.install
source=(${pkgname}.{xml,sh} {hicolor,gnome,Tango,oxygen,nuoveXT2,Faenza,Faience,NITRUX,Numix,breeze,FaenzaFlattr2-Zephyr,elementary}.svgz)
-sha1sums=('93b739fec9667c80837d38ff67d4a69faf43e4e8'
- '78f66dd1aea062bbe8a7ac948b66e9914aeaac9d'
- 'ef315dab623a0539dd1919bf983473150de1002c'
- 'd645b34f08693c5e9814f0f023288b780dca7471'
- '59bf9af96487b4d90926acfd6df9242504465b58'
- 'b33f4c138ac14edfab8e1b2781a93a67ff006a7a'
- '5e55d197549a119d21d48f3e29c6d9c04b4f45a1'
- '00fd22f20920efa8e76e37e53485d3aaf7c38582'
- '8cf65c3d546dc3e3ba548ef1c0ff0c08f9cf01f8'
- 'f7e10f36d1443821130fd7e0936ea162d32870ce'
- 'e7800e9ffc3760dd89ba49e4fba4d67c1e78b12b'
- 'f871d58606edd0d3155ef1a6dfc7e712e7ae0e76'
- '5d1640317226f5a43459fbac43309a1d660db012'
- 'bc08bda973ee77c97a6932548523d69822e26ee0')
+sha256sums=('e3fc45b1121fa845a245c115704715ec0b6a17860a507202cc5e1b02d01c797b'
+ '8fca736b01fc6d33759c87efc88b050851ff5876d286ce242b2ebb6b30326204'
+ 'fc9b1f43e5993e994707285d89e0da28be48b69046f4cac68578a8d0beef4653'
+ 'a59eb69c6fcdf7e8017c2596384cff0635dee46e3db5949370de766273451a85'
+ '0a4951fd15afb85229ee17629686f914b5e5ed0583846dde2350e0c247007975'
+ '1249231b458fad9901e8958e1bcaa119a79bbab0303ff7eaa27ad52c4ae5a77c'
+ '4b9d0454dc82bf6475b70aaee1733236ef78afe821467a60080ddeaf3c13d9c2'
+ '2e475b3ce9bcf96510e83748eaa45b918eded89278f232570b5eb558c5fbb4fa'
+ '7739338376904d9d93e5aa7a678b7da8314cb3022e4bc6938af6353cd4e9e300'
+ '52c6986309a98e0c85ad717c867d9d9a4772ce36c3d5d5ad94dda6fb23b5c749'
+ 'a26a86877f36d7ba61851659871ce6461a86b3004d3270b465931a611b64e0ef'
+ '8af276bc4afecede207a6742a5ef9320155650364339af183f9d47e1614c30a7'
+ '3f0177c13377ad94745ec0f0324ab5fb58eeccac4e4b56695ac0f2113fb4d5bb'
+ 'a99c2b48796d6f8299867034242c69fbddef4c380df0b68a678ee2727c841f29')
package() {
diff --git a/mime-archpkg.sh b/mime-archpkg.sh
index ca10adc9f5d..b084d74a0c4 100644
--- a/mime-archpkg.sh
+++ b/mime-archpkg.sh
@@ -10,7 +10,7 @@ declare -r NAME=application-x-archpkg
update() {
- local file theme elem suf
+ local file theme elem suf abc
local -i size
local -a taba tab
if [[ -d $MYDIR ]]; then
@@ -28,14 +28,26 @@ update() {
for elem in "${taba[@]}"; do
tab=($(echo $elem|sed 's/\//\n/'))
if [[ ${tab[0]/[0-9]/} != ${tab[0]} ]]; then
- size=${tab[0]/x[0-9][0-9]*/}
+ if [[ -h $theme/${tab[0]} ]]; then # skip link
+ continue
+ fi
if [[ ${tab[0]/@2x/} != ${tab[0]} ]]; then
+ abc=${tab[0]/@2x/}
+ size=${abc/x*/}
size=$size*2
+ else
+ size=${tab[0]/x*/}
fi
elif [[ ${tab[1]/[0-9]/} != ${tab[1]} ]]; then
- size=${tab[1]/x[0-9][0-9]*/}
+ if [[ -h $theme/${tab[1]} ]]; then # skip link
+ continue
+ fi
if [[ ${tab[1]/@2x/} != ${tab[1]} ]]; then
+ abc=${tab[1]/@2x/}
+ size=${abc/x*/}
size=$size*2
+ else
+ size=${tab[1]/x*/}
fi
elif [[ ${elem/scalable/} != ${elem} ]]; then
size=0
@@ -52,6 +64,7 @@ update() {
else
rsvg-convert -o /tmp/archpkg.svg -f svg "$file"
install -m644 /tmp/archpkg.svg "$theme/$elem/$NAME.svg"
+ echo
fi
fi
done