summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8bcd340dbc2274db4f3e3d88d0cc121c00def6bb (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
# Maintainer: Michael Armbruster <michael at armbrust dot me>

pkgname=nsz-git
pkgrel=1
pkgver=3.1.1.r25.g571147e
pkgdesc="Switch Homebrew compatible NSP/XCI compressor/decompressor"
conflicts=("${pkgname%-*}")
provides=("${pkgname%-*}=$pkgver")
arch=("any")
url="https://github.com/nicoboss/nsz"
license=("MIT")
depends=("python>=3.6" "python-pycryptodome>=3.9.0" "python-zstandard" "python-enlighten")
optdepends=("python-pygame" "python-kivy==1.11.1")
makedepends=("git")
source=("${pkgname}::git+https://github.com/nicoboss/${pkgname%-*}.git")
sha256sums=("SKIP")

pkgver() {
  cd "${pkgname}"
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "${pkgname}"
  python setup.py build
}

package() {
  cd "${pkgname}"
  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
}