Date: Sunday, April 28, 2013 @ 07:46:01 Author: eric Revision: 89215 upgpkg: xv 3.10a-17
Rebuild against libpng 1.6 Modified: xv/trunk/PKGBUILD ----------+ PKGBUILD | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2013-04-28 05:27:39 UTC (rev 89214) +++ PKGBUILD 2013-04-28 05:46:01 UTC (rev 89215) @@ -3,7 +3,7 @@ pkgname=xv pkgver=3.10a -pkgrel=16 +pkgrel=17 pkgdesc="A nice image viewer" arch=('i686' 'x86_64') url="http://www.trilon.com/xv/" @@ -21,18 +21,21 @@ '4561344e8f2c30eee9c55b14a14f062d89d6e7b7' '3d19aa0c6ecc8b554081906babe0b4f9a6946da3') -build() { - cd "${srcdir}" +prepare() { tar -cJf xv-${pkgver}-source.tar.xz xv-${pkgver} cd ${pkgname}-${pkgver} patch -p1 -i "${srcdir}/xv-3.10a-jumbo-fix-enh-patch-20070520.txt" patch -p1 -i "${srcdir}/xv-3.10a-enhancements.20070520-20081216.diff" patch -p0 -i "${srcdir}/xv-3.10a-libpng15.patch" +} + +build() { + cd ${pkgname}-${pkgver} make JP2KDIR=/usr/lib } package() { - cd "${srcdir}/${pkgname}-${pkgver}" + cd ${pkgname}-${pkgver} install -d "${pkgdir}"/usr/{bin,lib,share/man/man1} make DESTDIR="${pkgdir}" PREFIX=/usr install install -D -m644 "${srcdir}/license.txt" "${pkgdir}/usr/share/licenses/${pkgname}/license.txt"