summaryrefslogtreecommitdiff
path: root/community/png2ico/PKGBUILD
blob: b5e1f0df6154d4fe0c9b3ea9a0ea197566a69802 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# $Id: PKGBUILD 90078 2013-05-06 19:39:06Z foutrelis $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: dibblethewrecker dibblethewrecker.at.jiwe.dot.org
# Maintainer: Daniel J Griffiths <ghost1227@archlinux.us>

pkgname=png2ico
pkgver=20021208
pkgrel=6
arch=('i686' 'x86_64' 'mips64el')
pkgdesc="Converts PNG files to Windows icon resource files"
url="http://www.winterdrache.de/freeware/png2ico/"
license=("GPL2")
depends=('libpng' 'gcc')
source=(http://www.winterdrache.de/freeware/png2ico/data/$pkgname-src-2002-12-08.tar.gz)
md5sums=('9b663df81c826cd564638cba2e6bc75b')

build() {
  cd ${srcdir}/${pkgname}
  sed -i '1,1i#include <string.h>' png2ico.cpp
  make
}

package() {
  cd ${srcdir}/${pkgname}
  install -D -m755 png2ico ${pkgdir}/usr/bin/png2ico
  install -D -m644 doc/png2ico.1 ${pkgdir}/usr/share/man/man1/png2ico.1
}