summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ef9a167de4f5417fd12e92ab6fe32d09aecc07df (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
# Maintainer: yjun <jerrysteve1101 at gmail dot com>

pkgname=nxp-gui-guider
_pkgname="Gui-Guider"
pkgver=1.8.0
_pkg_file_name="${_pkgname}-Setup-${pkgver}-GA.deb"
pkgrel=1
pkgdesc="A user-friendly graphical user interface development tool from NXP that enables the rapid development of high quality displays with the open-source LVGL graphics library"
arch=('x86_64')
url="https://www.nxp.com/design/software/development-software/gui-guider:GUI-GUIDER"
license=('custom:NXP SOFTWARE LICENSE AGREEMENT')
depends=(
# copy from namcap
#         "bash"
#         "glibc"
#         "gcc-libs"
#         "glib2"
#         "alsa-lib"
#         "libxrandr"
#         "libx11"
#         "libxkbcommon"
#         "libxcomposite"
#         "libxcb"
#         "libcups"
#         "libxext"
#         "mesa"
#         "libdrm"
#         "wayland"
#         "libxfixes"
#         "libxdamage"
#         "dbus"
#         "nspr"
#         "gtk3"
#         "at-spi2-core"
#         "expat"
#         "pango"
#         "cairo"
#         "nss"
#         "sdl2"
#         "hicolor-icon-theme"
#         "java-runtime"
#         "cmake"
#         "gcc"
#         "libvips"

# copy from deb control file
          "sdl2"
          "libvips"
          "cmake"
#         "gconf"
          "libnotify"
          "libappindicator-gtk3"
          "libxtst"
          "nss"
          "libffi"
          "gcc"
         )
options=('!strip')
makedepends=('tar'
             'xdg-user-dirs')

_DOWNLOADS_DIR=`xdg-user-dir DOWNLOAD`
if [ ! -f ${PWD}/${_pkg_file_name} ]; then
	if [ -f $_DOWNLOADS_DIR/${_pkg_file_name} ]; then
		ln -sfn $_DOWNLOADS_DIR/${_pkg_file_name} ${PWD}
	else
		msg2 ""
		msg2 "Package not found!"
		msg2 "The package can be downloaded here: ${url}"
		msg2 "Please remember to put a downloaded package ${_pkg_file_name} into the build directory ${PWD} or $_DOWNLOADS_DIR"
		msg2 ""
	fi
fi

source=("local://${_pkg_file_name}")
sha256sums=('b4157e0b03d5a3be3d30552278bc4dc1fca5aaacc1ecd8be866a1a0341fe981f')

build() {
  cd ${srcdir}

  mkdir -p ${srcdir}/build

  tar -xf data.tar.xz -C ${srcdir}/build
}

package() {
  cp -a ${srcdir}/build/* ${pkgdir}/

  # soft link
  install -dm 755 ${pkgdir}/usr/bin
  ln -sf /opt/${_pkgname}/${_pkgname} ${pkgdir}/usr/bin/${_pkgname}

  # license
  install -Dm644 ${srcdir}/build/opt/${_pkgname}/EULA.txt -t ${pkgdir}/usr/share/licenses/${pkgname}
}
# vim: set sw=2 ts=2 et: