[arch-commits] Commit in foxdot/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Thu Nov 12 17:40:26 UTC 2020
Date: Thursday, November 12, 2020 @ 17:40:26
Author: felixonmars
Revision: 752752
archrelease: copy trunk to community-staging-any
Added:
foxdot/repos/community-staging-any/
foxdot/repos/community-staging-any/PKGBUILD
(from rev 752751, foxdot/trunk/PKGBUILD)
----------+
PKGBUILD | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 56 insertions(+)
Copied: foxdot/repos/community-staging-any/PKGBUILD (from rev 752751, foxdot/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2020-11-12 17:40:26 UTC (rev 752752)
@@ -0,0 +1,56 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=FoxDot
+pkgname=foxdot
+pkgver=0.8.11
+pkgrel=2
+pkgdesc="Live Coding with Python"
+arch=('any')
+url="https://foxdot.org"
+license=('CCPL')
+groups=('pro-audio')
+depends=('python' 'supercollider' 'tk')
+makedepends=('gendesk' 'imagemagick' 'python-setuptools')
+checkdepends=('python-pytest')
+optdepends=('sc3-plugins: use additional UGens')
+# pypi sdist doesn't contain tests: https://github.com/Qirky/FoxDot/issues/188
+# source=("https://files.pythonhosted.org/packages/source/${pkgname::1}/${pkgname}/${_name}-${pkgver}.tar.gz")
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/Qirky/${pkgname}/archive/v${pkgver}.tar.gz")
+sha512sums=('4f1bea5839ac14509dccad395054325f6fce0354ff012d9948800f4cddd08f5d4da29cfc009de42c785d7969fbda215530e9fba3c41d80d68c042d6daf6baa4d')
+
+prepare() {
+ mv -v "${_name}-$pkgver" "$pkgname-$pkgver"
+ cd "$pkgname-$pkgver"
+ gendesk -n \
+ --pkgname "${pkgname}" \
+ --name "${_name}" \
+ --exec "${_name}" \
+ --genericname "Live Coding Editor" \
+ --categories "AudioVideo;Audio" \
+ --comment "Live Coding with Python and SuperCollider"
+}
+
+build() {
+ cd "$pkgname-$pkgver"
+ python setup.py build
+ convert -verbose FoxDot/lib/Workspace/img/icon.gif +set date:create +set date:modify "${pkgname}.png"
+}
+
+check() {
+ cd "$pkgname-$pkgver"
+ pytest -v
+}
+
+package() {
+ cd "$pkgname-$pkgver"
+ python setup.py install --prefix=/usr \
+ --skip-build \
+ --optimize=1 \
+ --root="${pkgdir}" \
+ --verbose
+ install -vDm 644 *.desktop -t "${pkgdir}/usr/share/applications"
+ install -vDm 644 "${pkgname}.png" -t "${pkgdir}/usr/share/pixmaps"
+ install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+ install -vDm 644 {README.md,changelog} \
+ -t "${pkgdir}/usr/share/doc/${pkgname}"
+}
More information about the arch-commits
mailing list