-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathPSPBUILD
38 lines (33 loc) · 1022 Bytes
/
PSPBUILD
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
pkgname=libpspvram
pkgver=r11.885fd3f
pkgrel=3
pkgdesc="Dynamic VRAM allocation manager for the PSP"
arch=('mips')
url="https://github.com/albe/libpspvram"
license=('MIT')
groups=('pspdev-default')
depends=()
makedepends=()
optdepends=()
source=("git+https://github.com/pspdev/libpspvram.git#commit=885fd3f5420dbc6a9ed450d268d752813093b417")
sha256sums=('SKIP')
pkgver() {
cd "$pkgname"
# Set the revision of the repo as version
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$pkgname"
mkdir -p build
cd build
cmake -Wno-dev -DCMAKE_TOOLCHAIN_FILE=$PSPDEV/psp/share/pspdev.cmake -DCMAKE_INSTALL_PREFIX=${pkgdir}/psp \
-DCMAKE_BUILD_TYPE=Release "${XTRA_OPTS[@]}" .. || { exit 1; }
make --quiet $MAKEFLAGS || { exit 1; }
}
package() {
cd "$pkgname/build"
make --quiet $MAKEFLAGS install
cd ..
mkdir -m 755 -p "$pkgdir/psp/share/licenses/$pkgname"
install -m 644 LICENSE "$pkgdir/psp/share/licenses/$pkgname"
}