summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b019a05f92514cbda995f51724ca8575dd4f87ad (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
# Maintainer: Vaporeon <vaporeon@vaporeon.io>
# Contributor: Joe Carta <cartakid at gmail dot com>
# Contributor: sidious/SiD <miste78 web de>
# Contributor: Wes Brewer <brewerw@gmail.com>

pkgname=extract-xiso-git
pkgver=r44.3438285
pkgrel=1
epoch=1
pkgdesc="xdvdfs (xbox iso) file creation and extraction utility (git package)"
arch=('x86_64')
url="https://github.com/XboxDev/extract-xiso"
license=('LicenseRef-extract-xiso')
depends=('lib32-gcc-libs' 'lib32-glibc')
makedepends=('cmake' 'ninja' 'git')
conflicts=('extract-xiso')
provides=('extract-xiso')
source=('git+https://github.com/XboxDev/extract-xiso.git')
sha256sums=('SKIP')

pkgver() {
  cd "${srcdir}"/extract-xiso
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
  cd "${srcdir}"
  mkdir -p build
}

build() {
  cd "${srcdir}"/build
  # Build as 32-bit because 64-bit builds are broken and produce corrupt ISOs.
  cmake ../extract-xiso -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_FLAGS=-m32
  ninja
}

package() {
  install -Dm755 "${srcdir}"/build/extract-xiso "${pkgdir}"/usr/bin/extract-xiso
  install -Dm644 "${srcdir}"/extract-xiso/LICENSE.TXT "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE.TXT
}