Package Details: com.antutu.benchmark 1.0.0.591-1

Git Clone URL: https://aur.archlinux.org/com.antutu.benchmark.git (read-only, click to copy)
Package Base: com.antutu.benchmark
Description: 安兔兔评测 for linux 安兔兔评测(AnTuTu)是一款跨平台,支持手机、电脑设备的专业性能评定软件。Linux版本的安兔兔支持一键跑分,可评估CPU/GPU/MEM/UX性能。
Upstream URL: https://www.antutu.com/
Keywords: antutu 安兔兔 跑分
Licenses: custom
Provides: antutu
Submitter: zhullyb
Maintainer: zhullyb (sukanka, xmengnet, zhaose)
Last Packager: zhullyb
Votes: 1
Popularity: 0.000000
First Submitted: 2021-02-12 09:30 (UTC)
Last Updated: 2024-01-31 05:52 (UTC)

Dependencies (0)

Required by (0)

Sources (1)

Latest Comments

zhullyb commented on 2024-01-31 05:52 (UTC)

@leledumbo thanks

leledumbo commented on 2024-01-31 05:48 (UTC)

591 is out, and the compression now uses zstd instead. So the new PKGBUILD should be:

# Maintainer: zhullyb <zhullyb [at] outlook dot com>

pkgname=com.antutu.benchmark
pkgver=1.0.0.591
pkgrel=1
pkgdesc="安兔兔评测 for linux
 安兔兔评测(AnTuTu)是一款跨平台,支持手机、电脑设备的专业性能评定软件。Linux版本的安兔兔支持一键跑分,可评估CPU/GPU/MEM/UX性能。"
arch=("x86_64")
url="https://www.antutu.com/"
license=("custom")
depends=()
options=(!strip)
provides=('antutu')
source=("http://file.antutu.com/soft/com.antutu.benchmark_amd64.deb")
md5sums=('f114e5fe49ad569a5ce412247a72644e')

prepare(){
    cd ${srcdir}
    tar -xvf data.tar.zst -C "${srcdir}"

}

package(){
    cd ${srcdir}

    mkdir -p ${pkgdir}/opt/antutu
    mv opt/apps/${pkgname}/files/* ${pkgdir}/opt/antutu/

    mkdir -p ${pkgdir}/usr/share/
    mv opt/apps/${pkgname}/entries/*  ${pkgdir}/usr/share/

    sed -i '5c Exec=antutu %U' ${pkgdir}/usr/share/applications/${pkgname}.desktop
    echo '''#!/bin/bash

export LD_LIBRARY_PATH=/opt/antutu:$LD_LIBRARY_PATH
/opt/antutu//bin/benchmark -start $1
''' >  ${pkgdir}/opt/antutu/start.sh
    chmod a+x ${pkgdir}/opt/antutu/start.sh
    mkdir -p ${pkgdir}/usr/bin
    ln -s /opt/antutu/start.sh ${pkgdir}/usr/bin/antutu
}

jackmeima commented on 2021-08-12 10:06 (UTC)

NICE try yi try.