summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b29c1e33b374dc2f6ed7db82a41a464fac72be9c (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
# Contributor: TBK <aur@jjtc.eu>
# Maintainer: TBK <aur@jjtc.eu>
pkgname=amiitool
pkgver=2
pkgrel=1
pkgdesc='Reverse-engineered amiibo cryptography'
url='https://github.com/socram8888/amiitool'
arch=('any')
license=('MIT')
makedepends=('git' 'mbedtls') # git is used to pull head version
source=("$pkgname-r$pkgver.tar.gz::https://github.com/socram8888/amiitool/archive/r$pkgver.tar.gz"
		fix-mbedtls_include.patch) 
md5sums=('a3c193286e4930fa903d742424f5cad5'
         'ec7d604b88be91eea182d9d5da73f413')
_builddir="$pkgname-r$pkgver"

prepare() {
	cd "_$builddir"
	patch -p1 < "${srcdir}/fix-mbedtls_include.patch"
}

build() {
	cd "_$builddir"
	make prefix=/usr
}

package() {
	cd "_$builddir"
	make prefix=/usr DESTDIR="$pkgdir" install
}