mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
added alarm/rkutils
This commit is contained in:
parent
749020e839
commit
980df3db94
1 changed files with 37 additions and 0 deletions
37
alarm/rkutils/PKGBUILD
Normal file
37
alarm/rkutils/PKGBUILD
Normal file
|
@ -0,0 +1,37 @@
|
|||
# Rockchip Tools
|
||||
# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>
|
||||
|
||||
buildarch=4
|
||||
|
||||
pkgname=rkutils
|
||||
pkgver=20140318
|
||||
pkgrel=1
|
||||
pkgdesc="Rockchip Tools"
|
||||
arch=('armv7h')
|
||||
url="https://github.com/Astralix/rkutils"
|
||||
depends=('openssl')
|
||||
makedepends=('git')
|
||||
license=('GPL')
|
||||
source=("git+https://github.com/Astralix/rkutils.git"
|
||||
"git+https://github.com/olegk0/tools.git")
|
||||
md5sums=('SKIP'
|
||||
'SKIP')
|
||||
|
||||
build() {
|
||||
cd rkutils
|
||||
sed -i 's/CFLAGS :=/CFLAGS \+=/' Makefile
|
||||
make
|
||||
|
||||
cd ../tools
|
||||
gcc -o mkbootimg.o -c mkbootimg.c -I.
|
||||
gcc -I. ${CFLAGS} -o mkbootimg mkbootimg.c -lcrypto
|
||||
}
|
||||
|
||||
package() {
|
||||
cd rkutils
|
||||
|
||||
mkdir -p "${pkgdir}"/usr/bin
|
||||
make INSTALLDIR="${pkgdir}/usr/bin" install
|
||||
|
||||
cp ../tools/mkbootimg "${pkgdir}"/usr/bin
|
||||
}
|
Loading…
Reference in a new issue