🔒 Repository is read-only – file editing is disabled.

recipes/gui/xapp/PAGBUILD.yaml main

48 linii Raw ← Powrót
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
pkgname: xapp
pkgver: '3.3.4'
pkgrel: 1
pkgdesc: Common library for X-Apps project.
url: 'https://github.com/linuxmint/xapp'
arch: x86_64
license:
- GPL3 LGPL3
depends: []
makedepends:
- meson
- gobject-introspection
- gtk3
- python-gobject
- libgnomekbd
- vala
- libdbusmenu-gtk
source:
- 'https://github.com/linuxmint/xapp/archive/${pkgver}.tar.gz'
sha256sums:
- SKIP
build: |
  meson setup ${pkgname}-${pkgver} build \
  --prefix=/usr \
  --libexecdir=lib \
  --buildtype=debugoptimized

  meson compile -C build

  DESTDIR=${PKGDIR} meson install -C build


  # rm useless scripts
  rm -r ${PKGDIR}/usr/bin

  # byte-compile python modules since meson does not implement autotools'
  # py-compile.
  # This is kind of ugly but removes traces of the build root.
  while read -rd '' _file; do
    _destdir="$(dirname "${_file#${PKGDIR}}")"
    python -m compileall -d "${_destdir}" "${_file}"
    python -O -m compileall -d "${_destdir}" "${_file}"
  done < <(find "${PKGDIR}"/usr/lib/python* -name '*.py' -print0)

  install -Dm644 ./${pkgname}-${pkgver}/COPYING ${PKGDIR}/usr/share/licenses/${pkgname}/COPYING
  install -Dm644 ./${pkgname}-${pkgver}/COPYING.LESSER ${PKGDIR}/usr/share/licenses/${pkgname}/COPYING.LESSER
package: |
  true