[arch-commits] Commit in xapp/repos/community-x86_64 (PKGBUILD PKGBUILD)
Date: Thursday, December 10, 2020 @ 19:38:57 Author: eschwartz Revision: 773069 archrelease: copy trunk to community-x86_64 Added: xapp/repos/community-x86_64/PKGBUILD (from rev 773068, xapp/trunk/PKGBUILD) Deleted: xapp/repos/community-x86_64/PKGBUILD --+ PKGBUILD | 98 ++--- 1 file changed, 49 insertions(+), 49 deletions(-) Deleted: PKGBUILD === --- PKGBUILD2020-12-10 19:38:41 UTC (rev 773068) +++ PKGBUILD2020-12-10 19:38:57 UTC (rev 773069) @@ -1,49 +0,0 @@ -# Maintainer: Eli Schwartz -# Contributor: Alex Filgueira -# Contributor: Nate Simon - -pkgname=xapp -pkgver=2.0.2 -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=('b86b307768a68b0090a890dd951702970c5ceb69d31ba26a0e8719ec5d5ab053') -b2sums=('326e1e6e582fd2c3f8e878ad286da90678e577a4ed0a85e105b1d3cf3e744700c65f3ea40b0feac38407582a104a760a241522fff858d9349b850c68ccfcf796') - -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 773068, xapp/trunk/PKGBUILD) === --- PKGBUILD(rev 0) +++ PKGBUILD2020-12-10 19:38:57 UTC (rev 773069) @@ -0,0 +1,49 @@ +# Maintainer: Eli Schwartz +# Contributor: Alex Filgueira +# Contributor: Nate Simon + +pkgname=xapp +pkgver=2.0.3 +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=('7583fa65ee1cb2ed78be59cf313726c28a47c88c79c1cc3db0fcb83355621cdd') +b2sums=('44ba3e599f821f6cfb9d8c9e7f77f34200fcabbb7323c45792ad9968cc9ac7e34526ebaab5f7278115ecc4d4cb284fa0dec572ab418b72f2e74bc25f5237560b') + +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) +}
[arch-commits] Commit in xapp/repos/community-x86_64 (PKGBUILD PKGBUILD)
Date: Tuesday, December 8, 2020 @ 15:07:36 Author: eschwartz Revision: 771801 archrelease: copy trunk to community-x86_64 Added: xapp/repos/community-x86_64/PKGBUILD (from rev 771800, xapp/trunk/PKGBUILD) Deleted: xapp/repos/community-x86_64/PKGBUILD --+ PKGBUILD | 110 +++-- 1 file changed, 49 insertions(+), 61 deletions(-) Deleted: PKGBUILD === --- PKGBUILD2020-12-08 15:07:20 UTC (rev 771800) +++ PKGBUILD2020-12-08 15:07:36 UTC (rev 771801) @@ -1,61 +0,0 @@ -# Maintainer: Eli Schwartz -# Contributor: Alex Filgueira -# Contributor: Nate Simon - -pkgname=xapp -pkgver=2.0.0 -pkgrel=2 -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" - "https://github.com/linuxmint/xapp/pull/117/commits/8fb391b5d8f081d6fa1ed4a7d9f56e175aae31ff.patch;) -sha256sums=('cc33dea39cc1092e77280ba290b94adf991125d922b285dc20c5a62cc41dac29' -'e5e0e3462746d2c967d136a5561de72fb67b9882d644fad30d516512eb8f5255') -b2sums=('64159030705a8f94c4ebebc361a78b34ede83ff21e8ef66fe0445d0ff69f1d8546ccbe19625bad1ce9101fa6c4654ef3706ca9b0fc006f3b934562f388e96814' - '785f78e9f0dd51ae70388d09de26d760a530a6859f78995197fc9eacd1b4c483c3570b2e716ad27c9133f6b2f5e835507ba203359ed81069fc9b4e5c09ef8995') - -prepare() { -cd "${srcdir}"/${pkgname}-${pkgver} - -# do not install file in Debian-specific location that doesn't work anywhere else -# https://github.com/linuxmint/xapp/pull/117 -patch -p1 -i ../8fb391b5d8f081d6fa1ed4a7d9f56e175aae31ff.patch - -} - -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 771800, xapp/trunk/PKGBUILD) === --- PKGBUILD(rev 0) +++ PKGBUILD2020-12-08 15:07:36 UTC (rev 771801) @@ -0,0 +1,49 @@ +# Maintainer: Eli Schwartz +# Contributor: Alex Filgueira +# Contributor: Nate Simon + +pkgname=xapp +pkgver=2.0.2 +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=('b86b307768a68b0090a890dd951702970c5ceb69d31ba26a0e8719ec5d5ab053') +b2sums=('326e1e6e582fd2c3f8e878ad286da90678e577a4ed0a85e105b1d3cf3e744700c65f3ea40b0feac38407582a104a760a241522fff858d9349b850c68ccfcf796') + +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) +}
[arch-commits] Commit in xapp/repos/community-x86_64 (PKGBUILD PKGBUILD)
Date: Friday, November 27, 2020 @ 05:52:27 Author: eschwartz Revision: 763971 archrelease: copy trunk to community-x86_64 Added: xapp/repos/community-x86_64/PKGBUILD (from rev 763970, xapp/trunk/PKGBUILD) Deleted: xapp/repos/community-x86_64/PKGBUILD --+ PKGBUILD | 109 ++--- 1 file changed, 61 insertions(+), 48 deletions(-) Deleted: PKGBUILD === --- PKGBUILD2020-11-27 05:51:54 UTC (rev 763970) +++ PKGBUILD2020-11-27 05:52:27 UTC (rev 763971) @@ -1,48 +0,0 @@ -# Maintainer: Eli Schwartz -# Contributor: Alex Filgueira -# Contributor: Nate Simon - -pkgname=xapp -pkgver=1.8.10 -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=('a0d542de6dc4d6a318bdf1fad88447db270ab2dd0582f0c6f28008cc77337672') -b2sums=('cda37ade7d8cd3f9ffb5fd1e6ac7ed5841f9ccc8c8735cfc5a7d88a0a3530614b70dd56395b4f36a6c39b980df83c5668b44f45223240ed1009918178ee0e88f') - -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 763970, xapp/trunk/PKGBUILD) === --- PKGBUILD(rev 0) +++ PKGBUILD2020-11-27 05:52:27 UTC (rev 763971) @@ -0,0 +1,61 @@ +# Maintainer: Eli Schwartz +# Contributor: Alex Filgueira +# Contributor: Nate Simon + +pkgname=xapp +pkgver=2.0.0 +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" + "https://github.com/linuxmint/xapp/pull/117/commits/8fb391b5d8f081d6fa1ed4a7d9f56e175aae31ff.patch;) +sha256sums=('cc33dea39cc1092e77280ba290b94adf991125d922b285dc20c5a62cc41dac29' +'e5e0e3462746d2c967d136a5561de72fb67b9882d644fad30d516512eb8f5255') +b2sums=('64159030705a8f94c4ebebc361a78b34ede83ff21e8ef66fe0445d0ff69f1d8546ccbe19625bad1ce9101fa6c4654ef3706ca9b0fc006f3b934562f388e96814' + '785f78e9f0dd51ae70388d09de26d760a530a6859f78995197fc9eacd1b4c483c3570b2e716ad27c9133f6b2f5e835507ba203359ed81069fc9b4e5c09ef8995') + +prepare() { +cd "${srcdir}"/${pkgname}-${pkgver} + +# do not install file in Debian-specific location that doesn't work anywhere else +# https://github.com/linuxmint/xapp/pull/117 +patch -p1 -i ../8fb391b5d8f081d6fa1ed4a7d9f56e175aae31ff.patch + +} + +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) +}
[arch-commits] Commit in xapp/repos/community-x86_64 (PKGBUILD PKGBUILD)
Date: Tuesday, September 22, 2020 @ 11:23:03 Author: eschwartz Revision: 711371 archrelease: copy trunk to community-x86_64 Added: xapp/repos/community-x86_64/PKGBUILD (from rev 711370, xapp/trunk/PKGBUILD) Deleted: xapp/repos/community-x86_64/PKGBUILD --+ PKGBUILD | 96 ++--- 1 file changed, 48 insertions(+), 48 deletions(-) Deleted: PKGBUILD === --- PKGBUILD2020-09-22 11:22:50 UTC (rev 711370) +++ PKGBUILD2020-09-22 11:23:03 UTC (rev 711371) @@ -1,48 +0,0 @@ -# Maintainer: Eli Schwartz -# Contributor: Alex Filgueira -# Contributor: Nate Simon - -pkgname=xapp -pkgver=1.8.9 -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=('6200c026589f655d936574ec3dc648936e737234413e9e0ee1e783575e7e1a8f') -b2sums=('37b2d2677cb6483533d79853a83d77b30033313c06db89e93491076bb017122f77cd97b30d5ba64ce53fb41a37736791e97da785f516953b76b1d979d341e2fc') - -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 711370, xapp/trunk/PKGBUILD) === --- PKGBUILD(rev 0) +++ PKGBUILD2020-09-22 11:23:03 UTC (rev 711371) @@ -0,0 +1,48 @@ +# Maintainer: Eli Schwartz +# Contributor: Alex Filgueira +# Contributor: Nate Simon + +pkgname=xapp +pkgver=1.8.10 +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=('a0d542de6dc4d6a318bdf1fad88447db270ab2dd0582f0c6f28008cc77337672') +b2sums=('cda37ade7d8cd3f9ffb5fd1e6ac7ed5841f9ccc8c8735cfc5a7d88a0a3530614b70dd56395b4f36a6c39b980df83c5668b44f45223240ed1009918178ee0e88f') + +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) +}
[arch-commits] Commit in xapp/repos/community-x86_64 (PKGBUILD PKGBUILD)
Date: Sunday, August 30, 2020 @ 20:49:29 Author: eschwartz Revision: 693133 archrelease: copy trunk to community-x86_64 Added: xapp/repos/community-x86_64/PKGBUILD (from rev 693132, xapp/trunk/PKGBUILD) Deleted: xapp/repos/community-x86_64/PKGBUILD --+ PKGBUILD | 93 +++-- 1 file changed, 48 insertions(+), 45 deletions(-) Deleted: PKGBUILD === --- PKGBUILD2020-08-30 20:49:08 UTC (rev 693132) +++ PKGBUILD2020-08-30 20:49:29 UTC (rev 693133) @@ -1,45 +0,0 @@ -# Maintainer: Eli Schwartz -# Contributor: Alex Filgueira -# Contributor: Nate Simon - -pkgname=xapps -pkgver=1.8.8 -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') -source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz") -sha256sums=('8de282331658971ce154676273a402c9d0149df4ee167625d21282f126d773a6') -b2sums=('f71a3d9ab5e482488fc5595d00302b1c5f61c077e494964d27996845ed49080c19c03a21525a612bdbc5a50dc2ed6a0266a8668caf4734df9978accb8f35048c') - -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 693132, xapp/trunk/PKGBUILD) === --- PKGBUILD(rev 0) +++ PKGBUILD2020-08-30 20:49:29 UTC (rev 693133) @@ -0,0 +1,48 @@ +# Maintainer: Eli Schwartz +# Contributor: Alex Filgueira +# Contributor: Nate Simon + +pkgname=xapp +pkgver=1.8.9 +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=('6200c026589f655d936574ec3dc648936e737234413e9e0ee1e783575e7e1a8f') +b2sums=('37b2d2677cb6483533d79853a83d77b30033313c06db89e93491076bb017122f77cd97b30d5ba64ce53fb41a37736791e97da785f516953b76b1d979d341e2fc') + +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) +}