2015-04-04 19:17:30 +00:00
|
|
|
# Rockchip Tools
|
|
|
|
# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
|
2017-04-21 02:31:12 +00:00
|
|
|
buildarch=12
|
2015-04-04 19:17:30 +00:00
|
|
|
|
|
|
|
pkgname=rockchip-tools
|
2017-04-21 02:31:12 +00:00
|
|
|
pkgver=20170420
|
2015-04-04 19:17:30 +00:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="Rockchip Tools"
|
2017-04-21 02:31:12 +00:00
|
|
|
arch=('armv7h' 'aarch64')
|
2015-04-04 19:17:30 +00:00
|
|
|
url="https://github.com/neo-technologies"
|
|
|
|
depends=('openssl' 'libusb')
|
|
|
|
makedepends=('git')
|
|
|
|
license=('custom' 'APACHE' 'GPL')
|
|
|
|
source=("git+https://github.com/neo-technologies/rkflashtool.git"
|
|
|
|
"git+https://github.com/neo-technologies/rockchip-mkbootimg.git"
|
2017-04-21 02:31:12 +00:00
|
|
|
"git+https://github.com/neo-technologies/rkboottools.git"
|
|
|
|
"git+https://github.com/rockchip-linux/rkdeveloptool.git")
|
2015-04-04 19:17:30 +00:00
|
|
|
md5sums=('SKIP'
|
2017-04-21 02:31:12 +00:00
|
|
|
'SKIP'
|
2015-04-04 19:17:30 +00:00
|
|
|
'SKIP'
|
|
|
|
'SKIP')
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "${srcdir}/rkflashtool"
|
|
|
|
make
|
|
|
|
|
|
|
|
cd "${srcdir}/rockchip-mkbootimg"
|
|
|
|
sed -i 's/LDFLAGS ?=/LDFLAGS +=/' Makefile
|
|
|
|
make
|
|
|
|
|
|
|
|
cd "${srcdir}/rkboottools"
|
|
|
|
make
|
2017-04-21 02:31:12 +00:00
|
|
|
|
|
|
|
cd "${srcdir}/rkdeveloptool"
|
|
|
|
CXXFLAGS+=" -fsigned-char"
|
|
|
|
autoreconf -fi
|
|
|
|
./configure --prefix=/usr
|
|
|
|
make
|
2015-04-04 19:17:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
install -d "${pkgdir}"/usr/bin
|
|
|
|
|
|
|
|
cd "${srcdir}/rkflashtool"
|
|
|
|
install -m755 rkcrc rkflashtool rkmisc rkpad rkparameters rkparametersblock rkunpack rkunsign "${pkgdir}"/usr/bin
|
|
|
|
|
|
|
|
cd "${srcdir}/rockchip-mkbootimg"
|
|
|
|
install -m755 afptool img_maker mkbootimg mkcpiogz mkrootfs mkupdate unmkbootimg unmkcpiogz "${pkgdir}"/usr/bin
|
|
|
|
|
|
|
|
cd "${srcdir}/rkboottools"
|
|
|
|
install -m755 rk-makebootable rk-rc4 rk-splitboot "${pkgdir}"/usr/bin
|
2017-04-21 02:31:12 +00:00
|
|
|
|
|
|
|
cd "${srcdir}/rkdeveloptool"
|
|
|
|
make DESTDIR="${pkgdir}" install
|
2015-04-04 19:17:30 +00:00
|
|
|
}
|