summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fb7590b190316931eea8ef9c4109d65fd83b7ff3 (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
# Maintainer: Gustavo Alvarez <sl1pkn07@gmail.com>
# Contributor: Martins Mozeiko <martins.mozeiko@gmail.com>

pkgname=pkg2zip-git
pkgver=2.3.13.g97a3985
pkgrel=1
arch=('x86_64')
pkgdesc='Decrypts PlayStation Vita pkg file and packages to zip archive. (GIT version)'
url='https://github.com/lusid1/pkg2zip'
license=('custom:unlicense')
depends=('glibc')
source=('git+https://github.com/lusid1/pkg2zip.git')
sha256sums=('SKIP')

pkgver() {
  cd pkg2zip
  echo "$(git describe --long --tags | tr - . | tr -d v)"
}

build() {
  cd pkg2zip
  make CFLAGS="${CFLAGS} -Wno-format-truncation"
}

package() {
  cd pkg2zip
  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
  install -Dm755 pkg2zip "${pkgdir}"/usr/bin/pkg2zip
}