summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: acbd538e8af070763a2eb21173a1e822d9d8f578 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Maintainer: hendy643 <hendy643@hotmail.com>

pkgname=config-tools-for-imx
pkgver=16.1
pkgrel=1
epoch=
pkgdesc="Integrated suite of configuration tools for NXP's i.MX Application Processors. From BIN package distributed by NXP."
arch=('x86_64')
url="https://www.nxp.com/design/development-boards/i-mx-evaluation-and-development-boards/config-tools-for-i-mx-applications-processors:CONFIG-TOOLS-IMX"
license=('custom:"NXP"')
depends=('java-environment' 'libxslt' 'libxtst' 'gcc-libs-multilib' 'gtk2' 'alsa-lib' 'libnet')
source=("file://config-tools-for-imx-v${pkgver}-${pkgrel}_amd64.deb.bin" "LICENSE" "${pkgname}.install")
sha256sums=('5f97c8a7268149f92b2a6d5deb07d0ae5a52810995db950f1e55093c18f16e8d'
            '41beb81990892ba157f85cd6c008f65191a763c97331ac6c8cceb18700883af5'
            'a1f53f36f04d98667717092eedc6ccb6c5a5a3ea7ad6ded79a9ac6f004f6307c')

options=('!strip' '!debug')

prepare() {
    chmod +x config-tools-for-imx-v${pkgver}-${pkgrel}_amd64.deb.bin
    ./config-tools-for-imx-v${pkgver}-${pkgrel}_amd64.deb.bin --noexec --keep --nox11 --target ${srcdir}
    rm config-tools-for-imx-v${pkgver}-${pkgrel}_amd64.deb.bin
    cd "${srcdir}"/ || exit
    mkdir -p config-tools-for-imx
    bsdtar -x -f config-tools-for-imx-v${pkgver}-${pkgrel}_amd64.deb -C config-tools-for-imx
    rm config-tools-for-imx-v${pkgver}-${pkgrel}_amd64.deb
    bsdtar -x -f config-tools-for-imx/data.tar.gz -C config-tools-for-imx
    rm config-tools-for-imx/data.tar.gz
}


package() {
        cp -r "${srcdir}"/config-tools-for-imx/usr "${pkgdir}"/;
        cp -r "${srcdir}"/config-tools-for-imx/opt "${pkgdir}"/;
        install -D -m644 "${srcdir}"/LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE";        
}