# Maintainer: Balló György # Contributor: Leonidas Spyropoulos # Contributor: Miguel Revilla # Contributor: Joshua Stiefer # Contributor: Alexander Fehr # Contributor: Daniel J Griffiths pkgname=wxsvg pkgver=1.5.24 pkgrel=2 pkgdesc='C++ library to create, manipulate and render SVG files' arch=('x86_64') url='http://wxsvg.sourceforge.net/' license=('custom:wxWindows') depends=('ffmpeg' 'libexif' 'wxwidgets-gtk3') makedepends=('webkit2gtk') source=("https://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2") sha256sums=('ae473291f8d0a5feafa06cd270c826c6bead4bceb2b9dd6fcecf2db7c25e2482') prepare() { cd $pkgname-$pkgver sed -i 's/libwxsvg_la_LDFLAGS = /libwxsvg_la_LDFLAGS = $(LDFLAGS) /' src/Makefile.am autoreconf -fi } build() { cd $pkgname-$pkgver ./configure --prefix=/usr sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool make } package() { cd $pkgname-$pkgver make DESTDIR="$pkgdir" install install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING" }