Date: Friday, July 1, 2022 @ 11:59:24 Author: archange Revision: 1243170
archrelease: copy trunk to community-x86_64 Added: xapp/repos/community-x86_64/PKGBUILD (from rev 1243169, xapp/trunk/PKGBUILD) Deleted: xapp/repos/community-x86_64/PKGBUILD ----------+ PKGBUILD | 86 ++++++++++++++++++++++++++----------------------------------- 1 file changed, 37 insertions(+), 49 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2022-07-01 11:59:16 UTC (rev 1243169) +++ PKGBUILD 2022-07-01 11:59:24 UTC (rev 1243170) @@ -1,49 +0,0 @@ -# Maintainer: Eli Schwartz <eschwa...@archlinux.org> -# Contributor: Alex Filgueira <alexfilgueira (at antergos.com)> -# Contributor: Nate Simon <aurpkg (at natesimon.net)> - -pkgname=xapp -pkgver=2.2.11 -pkgrel=1 -pkgdesc="Common library for X-Apps project" -arch=('x86_64') -url="https://github.com/linuxmint/${pkgname}" -license=('GPL') -depends=('libdbusmenu-gtk3' 'libgnomekbd') -optdepends=('python: for mate-desktop status applet') -makedepends=('meson' 'samurai' 'gobject-introspection' 'python-gobject' 'vala') -provides=('xapps') -conflicts=('xapps') -replaces=('xapps') -source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz") -sha256sums=('dc639db1af3c3a1eb2e5ec2eb362ba3d174948a5de0a5e0581869b9babe5ff09') -b2sums=('4fee6834ce520958e411ab72638fd24eff52038edaa109d22c9c619e3d0115f4e8b535719aeffae3f0bd3bf8d8fc30ad2d4808c2e68148929757455177f9135f') - -build() { - mkdir -p "${srcdir}"/${pkgname}-${pkgver}/build - cd "${srcdir}"/${pkgname}-${pkgver}/build - - meson --prefix=/usr \ - --libexecdir=lib \ - --buildtype=plain \ - .. - samu -} - -package(){ - cd "${srcdir}"/${pkgname}-${pkgver}/build - - DESTDIR="${pkgdir}" samu install - - # 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/python3* -name '*.py' -print0) -} Copied: xapp/repos/community-x86_64/PKGBUILD (from rev 1243169, xapp/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2022-07-01 11:59:24 UTC (rev 1243170) @@ -0,0 +1,37 @@ +# Maintainer: Bruno Pagani <archa...@archlinux.org> +# Contributor: Eli Schwartz <eschwa...@archlinux.org> +# Contributor: Alex Filgueira <alexfilgueira (at antergos.com)> +# Contributor: Nate Simon <aurpkg (at natesimon.net)> + +pkgname=xapp +pkgver=2.2.12 +pkgrel=1 +pkgdesc="Common library for X-Apps project" +arch=(x86_64) +url="https://github.com/linuxmint/${pkgname}" +license=(GPL) +depends=(libdbusmenu-gtk3 libgnomekbd) +optdepends=('python: for mate-desktop status applet') +makedepends=(meson samurai gobject-introspection python-gobject vala) +provides=(xapps) +conflicts=(xapps) +replaces=(xapps) +source=(${url}/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz) +sha256sums=('32f21f5d6e88d175a688f0f32e9dc90548a859fd523ab16bb730c6472f5874e0') +b2sums=('e43fd7742704780ff686a55ba9f359594479a6bdee83798eec4aeaa929c734d0de996550bbb6a54d16ccf6b2904851c57fc4f6d13c036fe1d254dc19421723cb') + +build() { + arch-meson ${pkgname}-${pkgver} build + samu -C build +} + +package(){ + DESTDIR="${pkgdir}" samu -C build install + + # rm useless scripts + rm -r "${pkgdir}"/usr/bin + + # byte-compile python modules since meson does not implement autotools’ py-compile. + local site_packages=$(python -c "import site; print(site.getsitepackages()[0])") + python -m compileall -o 0 -o 1 -o 2 --hardlink-dupes -s "${pkgdir}" "${pkgdir}"${site_packages} +}