summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 60d439b5a0d4d8cd85d80f790a3dc7dc83189505 (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
35
36
37
38
39
40
41
42
# Maintainer: Gustavo Alvarez <sl1pkn07@gmail.com>

pkgname=psvimgtools-git
pkgver=v0.1.3.gf446c56
pkgrel=1
arch=('x86_64')
pkgdesc="Decrypt Vita CMA backups. (GIT version)"
url='https://github.com/yifanlu/psvimgtools'
license=('MIT')
depends=('libgcrypt'
         'zlib'
         )
makedepends=('git'
             'cmake'
             )
conflicts=('psvimgtools')
provides=('psvimgtools')
source=('git+https://github.com/yifanlu/psvimgtools.git')
sha256sums=('SKIP')

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

prepare() {
  mkdir -p build

  cd build
  cmake ../psvimgtools \
    -DCMAKE_INSTALL_PREFIX=/usr
}

build() {
  make -C build
}

package() {
  make -C build DESTDIR="${pkgdir}" install

  install -Dm644 psvimgtools/LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}