# libwacom/cfg - "Build" settings for package

#---------------------------------------------------------------------

[technotes]

1. The source tarball used by this package was created  based on "git"
upstream sources. The sources were obtained as follows:

      ocgitfetch --run https://github.com/linuxwacom/libwacom.git

#---------------------------------------------------------------------

[buildtimes]

00.04 hours (or 002.20 minutes) - ThinkPad W530 i7 4x2 32GB RAM  using
                                  a 64-bit kernel and 32-bit distro

#---------------------------------------------------------------------

[settings]
setpaths = libevdev libgudev libwacom
tmpsize  = 5M

#---------------------------------------------------------------------

[depends]
eudev
gtkcore:forward
libevdev
libgudev
libinput:strict
python3-core:strict
xf86-input-libinput:strict
xorg:strict
xorgbase:strict

#---------------------------------------------------------------------

[configure]
PATH=$PRODTREE/python3/bin:$PATH
PP=$PKGDIR_PROD

for pkg in libevdev pyudev pytest setuptools_scm
do
    pip3 install --no-index --upgrade \
        --find-links /src/piprepo3 $pkg
done

#---------------------------------------------------------------------

rm -fr build
mkdir  build
meson  build \
    -D prefix=$PP

cd build
if [ \! -f build.ninja ]; then exit 1; fi
meson configure \
    -D tests=disabled

#---------------------------------------------------------------------

[build]
cd build
ninja_simple_build

#---------------------------------------------------------------------

[postbuild]
makelac libinput --force
makelac xf86-input-libinput --force

#---------------------------------------------------------------------

# Original URLs. These URLs were valid at one point, but may have died
# since then. If you download newer versions of tarballs [etc.], don't
# delete  the  original versions,  as you may not  be able  to replace
# them.

[urls]
url_debian  = tbd
url_home    = tbd
url_lfs     = tbd
url_tarball = git               # See "technotes" in "cfg" file

#---------------------------------------------------------------------

[history]
210128 Added package. Started with d3bf63352 ("git" hash).