blob: 4008644f9589a5252d1102b0ddde96b4ac34b22f (
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
|
# Maintainer: Alexandre Bouvier <contact@amb.tf>
_pkgname=ps3dec
pkgname=$_pkgname-git
pkgver=r2.7d1d27f
pkgrel=1
pkgdesc="ISO encryptor/decryptor for PS3 disc images"
arch=('aarch64' 'armv7h' 'i486' 'i686' 'pentium4' 'x86_64')
url="https://github.com/al3xtjames/PS3Dec"
license=('custom:WTFPL')
depends=('gcc-libs' 'glibc')
makedepends=('cmake' 'git' 'mbedtls')
provides=("$_pkgname=$pkgver")
conflicts=("$_pkgname")
source=("$_pkgname::git+$url.git")
b2sums=('SKIP')
pkgver() {
cd $_pkgname
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cmake -S $_pkgname -B build \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_C_FLAGS_RELEASE="-DNDEBUG" \
-DCMAKE_INSTALL_PREFIX=/usr \
-Wno-dev
cmake --build build
}
package() {
depends+=('libmbedcrypto.so')
# shellcheck disable=SC2154
install -D -t "$pkgdir"/usr/bin build/Release/PS3Dec
}
|