summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2c1206e662d174cd13f86d0445a2c48f82c7328b (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
43
44
45
# Maintainer: Nichlas Severinsen <ns@nsz.no>
pkgname=libray
_gitname="libray"
pkgver=0.0.9
pkgrel=1
url="https://notabug.org/necklace/libray"
pkgdesc="LibRay aims to be a Libre (FLOSS) Python application for unencrypting, extracting, repackaging, and encrypting PS3 ISOs."
arch=("any")
license=("GPLv3")
depends=("python" "python-pycryptodome" "python-beautifulsoup4" "python-tqdm" "python-requests" "python-html5lib")
makedepends=("python-setuptools")

source=("https://notabug.org/necklace/${_gitname}/archive/${pkgver}.tar.gz"
        "https://archive.org/download/sony-playstation-3-disc-keys-dat-cuesheets/Sony%20-%20PlayStation%203%20-%20Datfile%20%283590%29%20%282021-06-05%2001-59-33%29.zip"
        "https://archive.org/download/sony-playstation-3-disc-keys-dat-cuesheets/Sony%20-%20PlayStation%203%20-%20Disc%20Keys%20%283388%29%20%282021-06-05%2001-59-33%29.zip")

sha256sums=("a9f07e773146c0e1a3e01bd7deb8b9602c392f39cfeb44e66492410b95b5a88a"
            "ecf05922689296a9b151d2331cf85692120bc9aebc52c346001a55a3716ef120"
            "aaa5d64440d1294f85f74311efbe2760bac4a68770e1b74d47be03d22cfe7e43")

build() {
  cd $srcdir

  mkdir -p $_gitname/$_gitname/data
  
  mkdir -p $_gitname/tools/keys
  mv *.key $_gitname/tools/keys/
  mv *.dat $_gitname/tools/

  cd $_gitname/tools/

  python keys2db.py

  cd $srcdir/$_gitname
  
  python setup.py build  
}


package() {
	cd $srcdir/$_gitname
	python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
	install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}