summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b511a682c46f9789d55fbb634297c650ff93e180 (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
# Maintainer: Bakasura <bakasura@protonmail.ch>

pkgname=abgx360
pkgver=1.0.6
pkgrel=4
pkgdesc="An app for checking Xbox 360 ISOs"
url="https://bakasurarce.github.io/abgx360/"
arch=('x86_64' 'i686')
license=('unknown')
depends=('zlib' 'curl')
optdepends=('abgx360gui: a GUI for this tool')
source=("https://github.com/BakasuraRCE/abgx360/releases/download/v1.0.6-and-v1.0.2/linux_abgx360-1.0.6.tar.gz")
md5sums=('04b0c9e0461faa92ca5f8fac78bafe57')
install=abgx360.install

prepare() {
  cd "${srcdir}/${pkgname}-${pkgver}"

  # abgx360.net is somehow no longer working, so we'll switch to abgx360.xecuter.com for now
  sed -i 's/http:\/\/abgx360\.net\/Apps/https:\/\/hadzz\.com\/abgx/g' src/abgx360.c
  sed -i 's/abgx360\.net/hadzz\.com\/abgx/g' src/abgx360.c
  sed -i 's/Stealth360\/abgx360.dat/abgx360.dat/g' src/abgx360.c
  # Patch curl redirects
  sed -i 's/CURLOPT_MAXREDIRS, 0/CURLOPT_MAXREDIRS, -1/g' src/abgx360.c
}

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  
  #./autogen.sh
  ./configure
  make
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  make DESTDIR="${pkgdir}" install
}