summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d1d6137f0e8355becfd2bf7c72d1e9bbd0b7a9c4 (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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# Maintainer: Maxime Gauduin <alucryd@archlinux.org>
# Contributor: yubimusubi <possum+aur@possum.cc>

pkgname=3dstool
pkgver=1.2.6
pkgrel=1
pkgdesc='An all-in-one tool for extracting/creating 3ds roms'
arch=(x86_64)
url=https://github.com/dnasdw/3dstool
license=(MIT)
depends=(
  libcurl.so
  openssl
)
makedepends=(
  cmake
  git
)
source=(
  git+https://github.com/dnasdw/3dstool.git#tag=e31a569b130d30eccd3f41ef5691cb2aca77e4f6
  3dstool-paths.patch
)
sha256sums=(
  SKIP
  5ac00e5b56182ffde04c7b9ab2a5151e6cf575400705f0b061ff832116757582
)

pkgver() {
  cd 3dstool

  git describe --tags | sed 's/^v//'
}

prepare() {
  if [[ -d build ]]; then
    rm -rf build
  fi
  mkdir build

  cd 3dstool

  patch -Np1 -i ../3dstool-paths.patch
}

build() {
  cd build

  cmake ../3dstool \
    -DCMAKE_BUILD_TYPE=Release \
    -DUSE_DEP=OFF
  make
}

package() {
  make -C build install
  install -Dm 755 3dstool/bin/3dstool -t "${pkgdir}"/usr/bin/
  install -Dm 644 3dstool/bin/ignore_3dstool.txt -t "${pkgdir}"/usr/share/3dstool/
}

# vim: ts=2 sw=2 et: