blob: e6d7e06931ad394742539be7641f64e0204badf6 (
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
|
# Maintainer: Pieter Goetschalckx <3.14.e.ter <at> gmail <dot> com>
pkgname=redex-git
_pkgname=redex
pkgver=r681.44b8fd3
pkgrel=1
pkgdesc="A bytecode optimizer for Android apps"
arch=('i686' 'x86_64')
url="http://fbredex.com/"
license=('BSD')
depends=('python' 'boost-libs' 'jsoncpp')
makedepends=('git' 'boost')
provides=('redex')
conflicts=('redex')
source=("git+https://github.com/facebook/${_pkgname}/")
sha256sums=('SKIP'
'62e48fd8c554cfaaf21eadca6d74617f559780f1fd0fa9d61b5201fce961d6bb')
pkgver() {
cd "${_pkgname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "${_pkgname}"
sed -i 's/ANDROID_SDK/ANDROID_HOME/g' redex.py
}
build() {
cd "${_pkgname}"
autoreconf -ivf
./configure --prefix=/usr
make
}
package() {
cd "${_pkgname}"
make DESTDIR="$pkgdir/" install
}
|