| 1 | # Description: Sunxi Mali-400 support libraries. |
| 2 | # URL: https://github.com/linux-sunxi/sunxi-mali |
| 3 | # Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu |
| 4 | # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu |
| 5 | # Depends on: libdri2 libump mesa3d |
| 6 | |
| 7 | name=sunxi-mali |
| 8 | version=git |
| 9 | release=1 |
| 10 | source=() |
| 11 | |
| 12 | build() { |
| 13 | if [ ! -d $PKGMK_SOURCE_DIR/$name ]; then |
| 14 | git clone https://github.com/linux-sunxi/sunxi-mali.git $PKGMK_SOURCE_DIR/$name |
| 15 | else |
| 16 | cd $PKGMK_SOURCE_DIR/$name && git fetch |
| 17 | fi |
| 18 | cp -r $PKGMK_SOURCE_DIR/$name $SRC |
| 19 | |
| 20 | mkdir -p $PKG/usr/lib |
| 21 | |
| 22 | cd $SRC/$name |
| 23 | git submodule init |
| 24 | git submodule update |
| 25 | make -j1 config ABI=armhf VERSION=r3p0 |
| 26 | make DESTDIR=$PKG install |
| 27 | } |