[arch-commits] Commit in openstreetmap-map-icons-svn/repos/community-any (2 files)
Sergej Pupykin
spupykin at nymeria.archlinux.org
Mon May 6 11:55:53 UTC 2013
Date: Monday, May 6, 2013 @ 13:55:52
Author: spupykin
Revision: 89967
archrelease: copy trunk to community-any
Added:
openstreetmap-map-icons-svn/repos/community-any/PKGBUILD
(from rev 89966, openstreetmap-map-icons-svn/trunk/PKGBUILD)
Deleted:
openstreetmap-map-icons-svn/repos/community-any/PKGBUILD
----------+
PKGBUILD | 97 ++++++++++++++++++++++++++++++++-----------------------------
1 file changed, 52 insertions(+), 45 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2013-05-06 11:55:41 UTC (rev 89966)
+++ PKGBUILD 2013-05-06 11:55:52 UTC (rev 89967)
@@ -1,45 +0,0 @@
-# $Id$
-# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
-# Contributor: orbisvicis <orbisvicis at gmail dot com>
-
-pkgname=openstreetmap-map-icons-svn
-pkgver=29490
-pkgrel=1
-pkgdesc="A set of public domain licensed map icons for general OSM use"
-arch=("any")
-url="http://wiki.openstreetmap.org/wiki/Map_Icons"
-license=('custom:CCPL:by-sa' 'LGPL')
-makedepends=('subversion' 'perl' 'perl-file-slurp' 'perl-image-info'
- 'perl-xml-simple' 'perl-dbi' 'perl-xml-twig' 'imagemagick'
- 'perl-dbd-sqlite')
-source=("$pkgname::svn+http://svn.openstreetmap.org/applications/share/map-icons/")
-md5sums=('SKIP')
-
-package() {
- cd "${srcdir}/$pkgname"
-
- install -dm755 "${pkgdir}/usr/share/icons/map-icons/"
- install -Dm644 icons.xml "${pkgdir}/usr/share/icons/map-icons/"
- install -Dm644 icons.dtd "${pkgdir}/usr/share/icons/map-icons/"
- ( cd "${pkgdir}/usr/share/icons/map-icons/" && perl "${srcdir}/$pkgname/tools/create_geoinfo-db.pl" --lang=en --source=icons.xml )
- ( cd "${pkgdir}/usr/share/icons/map-icons/" && perl "${srcdir}/$pkgname/tools/create_geoinfo-db.pl" --lang=de --source=icons.xml )
- perl "${srcdir}/$pkgname/tools/compile_icons.pl" --dst-dir "${pkgdir}/usr/share/icons/map-icons/"
- ( cd "${pkgdir}/usr/share/icons/map-icons/" && perl "${srcdir}/$pkgname/tools/create_overview.pl" -l -r -P "overview_lic" )
- ( cd "${pkgdir}/usr/share/icons/map-icons/" && perl "${srcdir}/$pkgname/create_icons_index.pl" -r )
-
- #
- # Documentation
- #
- install -dm755 "${pkgdir}/usr/share/doc/${pkgname%-svn}/"
- install -Dm644 README README.icons "${pkgdir}/usr/share/doc/${pkgname%-svn}/"
- mv "${pkgdir}/usr/share/icons/map-icons/"*.html "${pkgdir}/usr/share/doc/${pkgname%-svn}/"
-
- #
- # Licenses
- #
- install -dm755 "${pkgdir}/usr/share/licenses/${pkgname%-svn}/"
- # License file included with svg-twotone
- install -dm755 "${pkgdir}/usr/share/licenses/${pkgname%-svn}/svg-twotone/"
- install -Dm644 "svg-twotone/LICENSE.txt" "${pkgdir}/usr/share/licenses/${pkgname%-svn}/svg-twotone/";
- # Many included svg/png images contain licensing metadata
-}
Copied: openstreetmap-map-icons-svn/repos/community-any/PKGBUILD (from rev 89966, openstreetmap-map-icons-svn/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2013-05-06 11:55:52 UTC (rev 89967)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: orbisvicis <orbisvicis at gmail dot com>
+
+pkgname=openstreetmap-map-icons-svn
+pkgver=29562
+pkgrel=1
+pkgdesc="A set of public domain licensed map icons for general OSM use"
+arch=("any")
+url="http://wiki.openstreetmap.org/wiki/Map_Icons"
+license=('custom:CCPL:by-sa' 'LGPL')
+makedepends=('subversion' 'perl' 'perl-file-slurp' 'perl-image-info'
+ 'perl-xml-simple' 'perl-dbi' 'perl-xml-twig' 'imagemagick'
+ 'perl-dbd-sqlite' 'libxslt' 'cmake' 'optipng')
+source=("$pkgname::svn+http://svn.openstreetmap.org/applications/share/map-icons/")
+md5sums=('SKIP')
+
+build() {
+ cd "${srcdir}/$pkgname"
+ cmake -DCMAKE_INSTALL_PREFIX=/usr .
+ make
+ find -name '*.png' -exec optipng -quiet -force -fix {} \;
+}
+
+package() {
+ cd "${srcdir}/$pkgname"
+
+ install -dm755 "${pkgdir}/usr/share/icons/map-icons/"
+ install -Dm644 icons.xml "${pkgdir}/usr/share/icons/map-icons/"
+ install -Dm644 icons.dtd "${pkgdir}/usr/share/icons/map-icons/"
+ ( cd "${pkgdir}/usr/share/icons/map-icons/" && perl "${srcdir}/$pkgname/tools/create_geoinfo-db.pl" --lang=en --source=icons.xml )
+ ( cd "${pkgdir}/usr/share/icons/map-icons/" && perl "${srcdir}/$pkgname/tools/create_geoinfo-db.pl" --lang=de --source=icons.xml )
+ perl "${srcdir}/$pkgname/tools/compile_icons.pl" --dst-dir "${pkgdir}/usr/share/icons/map-icons/"
+ ( cd "${pkgdir}/usr/share/icons/map-icons/" && perl "${srcdir}/$pkgname/tools/create_overview.pl" -l -r -P "overview_lic" )
+ ( cd "${pkgdir}/usr/share/icons/map-icons/" && perl "${srcdir}/$pkgname/create_icons_index.pl" -r )
+
+ #
+ # Documentation
+ #
+ install -dm755 "${pkgdir}/usr/share/doc/${pkgname%-svn}/"
+ install -Dm644 README README.icons "${pkgdir}/usr/share/doc/${pkgname%-svn}/"
+ mv "${pkgdir}/usr/share/icons/map-icons/"*.html "${pkgdir}/usr/share/doc/${pkgname%-svn}/"
+
+ #
+ # Licenses
+ #
+ install -dm755 "${pkgdir}/usr/share/licenses/${pkgname%-svn}/"
+ # License file included with svg-twotone
+ install -dm755 "${pkgdir}/usr/share/licenses/${pkgname%-svn}/svg-twotone/"
+ install -Dm644 "svg-twotone/LICENSE.txt" "${pkgdir}/usr/share/licenses/${pkgname%-svn}/svg-twotone/";
+ # Many included svg/png images contain licensing metadata
+}
More information about the arch-commits
mailing list