summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 13a506f23ebc6787e59e0f91ce33e8ed222fc380 (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-zlib
pkgver=1.2.11
pkgrel=1
pkgdesc="Compression library implementing the deflate compression method found in gzip and PKZIP (psp)"
arch=(any)
url="http://www.zlib.net/"
license=('custom')
groups=('psp')
depends=('psp-sdk')
makedepends=('psp-gcc')
options=('!buildflags' '!strip' 'staticlibs')
source=("http://sourceforge.net/projects/libpng/files/zlib/${pkgver}/zlib-${pkgver}.tar.gz"
        "https://raw.githubusercontent.com/pspdev/psplibraries/master/patches/zlib-${pkgver}-PSP.patch")
sha256sums=('c3e5e9fdd5004dcb542feda5ee4f0ff0744628baf8ed2dd5d66f8ca1197cb1a1'
         'SKIP')

prepare() {
  cd "$srcdir/zlib-${pkgver}"
  rm -f README.PSP
  patch -p1 -i "$srcdir"/zlib-${pkgver}-PSP.patch
}

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

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