xref: /OK3568_Linux_fs/yocto/poky/meta/recipes-graphics/xinput-calibrator/pointercal-xinput_0.0.bb (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunSUMMARY = "Touchscreen calibration data from xinput-calibrator"
2*4882a593SmuzhiyunDESCRIPTION = "A generic touchscreen calibration program for X.Org"
3*4882a593SmuzhiyunHOMEPAGE = "https://www.freedesktop.org/wiki/Software/xinput_calibrator/"
4*4882a593SmuzhiyunBUGTRACKER = "https://github.com/tias/xinput_calibrator/issues"
5*4882a593SmuzhiyunLICENSE = "MIT"
6*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
7*4882a593Smuzhiyun
8*4882a593SmuzhiyunPR = "r7"
9*4882a593Smuzhiyun
10*4882a593SmuzhiyunSRC_URI = "file://pointercal.xinput"
11*4882a593SmuzhiyunS = "${WORKDIR}"
12*4882a593Smuzhiyun
13*4882a593Smuzhiyundo_install() {
14*4882a593Smuzhiyun    # Only install file if it has a contents
15*4882a593Smuzhiyun    if [ -s ${S}/pointercal.xinput ] &&\
16*4882a593Smuzhiyun       [ ! -n "$(head -n1 ${S}/pointercal.xinput|grep "replace.*pointercal\.xinput")" ]; then
17*4882a593Smuzhiyun        install -d ${D}${sysconfdir}/
18*4882a593Smuzhiyun        install -m 0644 ${S}/pointercal.xinput ${D}${sysconfdir}/
19*4882a593Smuzhiyun    fi
20*4882a593Smuzhiyun}
21*4882a593Smuzhiyun
22*4882a593SmuzhiyunPACKAGE_ARCH = "${MACHINE_ARCH}"
23*4882a593SmuzhiyunCONFFILES:${PN} = "${sysconfdir}/pointercal.xinput"
24