Skip to content

anonymous /rktools-pkgbuild
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
# NOTE: Please fill out the license field for your package! If it is unknown,
# then please put 'unknown'.
pkgname=rk-tools
pkgver=1.0
pkgrel=1
pkgdesc="RockChip tools for RK29xx and RK30xx generations, mainly to modify ROMs (http://www.cnx-software.com/2012/11/04/rockchip-rk3066-rk30xx-processor-documentation-source-code-and-tools/)."
arch=(i686 x86_64)
url="https://github.com/rk3066/rk-tools.git"
license=('unknown')
groups=('system')
depends=()
makedepends=('gcc' 'make' 'git')
build() {
cd $srcdir
# If directiry alredy exists
if [ -d $pkgname ]; then
# If .git exists
if [ -d "$pkgname/.git" ]; then
# Checkout
cd $pkgname
git checkout
else
# ==== Remove dir if it has no .git ===
rm -R $pkgname || return 1
fi
else
git clone $url
cd $pkgname
fi
make || return 1
mkdir -p $pkgdir/usr/bin
install $srcdir/$pkgname/afptool $pkgdir/usr/bin
install $srcdir/$pkgname/img_maker $pkgdir/usr/bin
install $srcdir/$pkgname/img_unpack $pkgdir/usr/bin
install $srcdir/$pkgname/rkcrc $pkgdir/usr/bin
install $srcdir/$pkgname/rkkernel $pkgdir/usr/bin
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.