diff options
author | Steffen Weber | 2015-06-10 00:41:13 +0200 |
---|---|---|
committer | Steffen Weber | 2015-06-10 00:41:13 +0200 |
commit | e05ce336f4a128c8cc4dbbdbc2e5621ddb62891c (patch) | |
tree | 678eb90c75612b898a28500c920aabeeb4247fe8 | |
download | aur-e05ce336f4a128c8cc4dbbdbc2e5621ddb62891c.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 25 | ||||
-rw-r--r-- | PKGBUILD | 74 | ||||
-rw-r--r-- | rsvg.patch | 34 |
3 files changed, 133 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..3af22529f5f2 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,25 @@ +pkgbase = tango-icon-theme + pkgdesc = Icon theme that follows the Tango visual guidelines + pkgver = 0.8.90 + pkgrel = 9 + url = http://tango.freedesktop.org + arch = any + license = custom:public domain + license = custom:TRADEMARKS + makedepends = imagemagick + makedepends = icon-naming-utils + makedepends = intltool + makedepends = librsvg + options = !strip + options = !zipman + source = http://tango.freedesktop.org/releases/tango-icon-theme-0.8.90.tar.bz2 + source = http://cinderwick.ca/files/archlinux/artwork-official/symbol.svg + source = http://cinderwick.ca/files/archlinux/licensing-docs/TRADEMARKS + source = rsvg.patch + md5sums = b7b9b16480afb781a4c13f8bceb8688b + md5sums = e9c0c2e165f2883c3fa00277635ae4ae + md5sums = 05066419eb8239652a0467131485db4d + md5sums = 46f86ad43d793cd5389a7bd9c58a57ae + +pkgname = tango-icon-theme + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..c89e2b389c07 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,74 @@ +# Maintainer: Steffen Weber <-boenki-gmx-de-> +# Contributor: Thayer Williams <thayer@archlinux.org> +# Contributor: James Rayner <james@archlinux.org> + +pkgname=tango-icon-theme +pkgver=0.8.90 +pkgrel=9 +pkgdesc="Icon theme that follows the Tango visual guidelines" +arch=('any') +url="http://tango.freedesktop.org" +license=('custom:public domain' 'custom:TRADEMARKS') +makedepends=('imagemagick' 'icon-naming-utils' 'intltool' 'librsvg') +options=(!strip !zipman) +source=(${url}/releases/${pkgname}-${pkgver}.tar.bz2 + http://cinderwick.ca/files/archlinux/artwork-official/symbol.svg + http://cinderwick.ca/files/archlinux/licensing-docs/TRADEMARKS + rsvg.patch) +md5sums=('b7b9b16480afb781a4c13f8bceb8688b' + 'e9c0c2e165f2883c3fa00277635ae4ae' + '05066419eb8239652a0467131485db4d' + '46f86ad43d793cd5389a7bd9c58a57ae') + +prepare() { + cd ${pkgname}-${pkgver} + patch -p1 < "${srcdir}/rsvg.patch" + autoreconf -fi +} + +build() { + cd ${pkgname}-${pkgver} + ./configure --prefix=/usr --enable-png-creation + make +} + +package() { + cd ${pkgname}-${pkgver} + make DESTDIR="${pkgdir}" install + + # install licenses + install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + install -m644 ../TRADEMARKS "${pkgdir}/usr/share/licenses/${pkgname}/" + + cd "${pkgdir}/usr/share/icons/Tango" + + # function using imagemagick to combine symbols with default folder-icon + # used below to create xdg-folders + comp() { + composite -gravity center \( ${size}x${size}/"$1".png -resize 50% \) \ + ${size}x${size}/places/folder.png ${size}x${size}/places/folder-"$2".png + } + + for size in 16 22 24 32 48 64 72 96 128; do + # replace default logo with Arch Linux's + rsvg-convert -w ${size} -h ${size} "${srcdir}/symbol.svg" \ + -o "${size}x${size}/places/start-here.png" + # create icon for category "Education" + ln -s "../status/dialog-information.png" \ + "${size}x${size}/categories/applications-science.png" + + # create xdg-folders + comp apps/internet-web-browser publicshare + comp actions/go-down download + comp actions/document-properties templates + comp mimetypes/audio-x-generic music + comp mimetypes/image-x-generic pictures + comp mimetypes/video-x-generic videos + comp mimetypes/x-office-document documents + done + + install -Dm644 "${srcdir}/symbol.svg" \ + "scalable/places/start-here.svg" + ln -s "../status/dialog-information.svg" \ + "scalable/categories/applications-science.svg" +}
\ No newline at end of file diff --git a/rsvg.patch b/rsvg.patch new file mode 100644 index 000000000000..6b71c38cb0f2 --- /dev/null +++ b/rsvg.patch @@ -0,0 +1,34 @@ +Index: tango-icon-theme-0.8.90/configure.ac +=================================================================== +--- tango-icon-theme-0.8.90.orig/configure.ac ++++ tango-icon-theme-0.8.90/configure.ac +@@ -82,7 +82,7 @@ if test "x$enable_large_bitmaps" = "xyes + PKG_CHECK_EXISTS([librsvg-2.0 >= 2.12.3], + [enable_large_bitmaps=yes], [enable_large_bitmaps=no]) + if test "x$enable_large_bitmaps" = "xyes"; then +- svgconvert_prog="rsvg" ++ svgconvert_prog="rsvg-convert" + else + svgconvert_prog="ksvgtopng" + fi +Index: tango-icon-theme-0.8.90/svg2png.sh.in +=================================================================== +--- tango-icon-theme-0.8.90.orig/svg2png.sh.in ++++ tango-icon-theme-0.8.90/svg2png.sh.in +@@ -9,12 +9,14 @@ fi + + ICONFILE=`basename ${3}` + ICONNAME=`echo ${ICONFILE} | sed -e "s/.svg//"` +-if test `basename $SVGCONVERT` = "rsvg"; then ++if test `basename $SVGCONVERT` = "rsvg-convert"; then + OPTIONS="-w ${1} -h ${1}" ++ OUTPUT="-o" + else + OPTIONS="${1} ${1}" ++ OUTPUT="" + fi + + echo "${SVGCONVERT} ${OPTIONS} ${3} ${2}/${ICONNAME}.png" +-${SVGCONVERT} ${OPTIONS} ${3} ${2}/${ICONNAME}.png ++${SVGCONVERT} ${OPTIONS} ${3} ${OUTPUT} ${2}/${ICONNAME}.png + |