summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2db4a96d2a16e8c3386323423ab40de55a5c4467 (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
28
29
30
31
32
33
34
pkgname=psp-libpng
pkgver=1.5.7
pkgrel=1
pkgdesc="PNG reference library (psp)"
arch=(any)
url="http://www.libpng.org"
license=('GPL')
groups=('psp')
depends=('psp-sdk' 'psp-zlib')
makedepends=('psp-gcc')
options=('!buildflags' '!strip' 'staticlibs')
source=("https://sourceforge.net/projects/libpng/files/libpng15/older-releases/${pkgver}/libpng-${pkgver}.tar.gz"
        "https://raw.githubusercontent.com/pspdev/psplibraries/master/patches/libpng-${pkgver}-PSP.patch")
md5sums=('944b56a84b65d94054cc73d7ff965de8'
         'SKIP')

prepare() {
  cd "$srcdir/libpng-${pkgver}"
  rm -f Makefile pnglibconf.h README.PSP screenshot/main.c screenshot/Makefile 
  patch -p1 -i "$srcdir"/libpng-${pkgver}-PSP.patch
}

build()
{
  cd "$srcdir/libpng-${pkgver}"
  make
}

package()
{
  cd "$srcdir/libpng-${pkgver}"
  make install PSPDIR="$pkgdir"/usr/psp
}