[arch-commits] Commit in foxdot/repos (community-any community-any/PKGBUILD)

David Runge dvzrv at archlinux.org
Tue Jul 30 16:00:18 UTC 2019


    Date: Tuesday, July 30, 2019 @ 16:00:18
  Author: dvzrv
Revision: 495325

archrelease: copy trunk to community-any

Added:
  foxdot/repos/community-any/
  foxdot/repos/community-any/PKGBUILD
    (from rev 495324, foxdot/trunk/PKGBUILD)

----------+
 PKGBUILD |   52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 52 insertions(+)

Copied: foxdot/repos/community-any/PKGBUILD (from rev 495324, foxdot/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2019-07-30 16:00:18 UTC (rev 495325)
@@ -0,0 +1,52 @@
+# Maintainer: David Runge <dave at sleepmap.de>
+
+_name=FoxDot
+pkgname=foxdot
+pkgver=0.7.34
+pkgrel=1
+pkgdesc="Live Coding with Python"
+arch=('any')
+url="https://foxdot.org"
+license=('CCPL')
+groups=('pro-audio')
+depends=('python' 'supercollider' 'tk')
+makedepends=('gendesk' '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/${pkgver}.tar.gz")
+sha512sums=('3efd39fc4f36939c9d64020044b2b7fd3aaf38f477786e5af4016a5b58135ad34ff27d8d815f333f1fe2f3854114f6c4b642a3bb8bdd0b3b003990b8fb46a8fb')
+
+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"
+}
+
+build() {
+  cd "$pkgname-$pkgver"
+  python setup.py build
+}
+
+check() {
+  cd "$pkgname-$pkgver"
+  py.test
+}
+
+package() {
+  cd "$pkgname-$pkgver"
+  python setup.py install --prefix=/usr \
+                          --skip-build \
+                          --optimize=1 \
+                          --root="${pkgdir}"
+  install -vDm 644 *.desktop -t "${pkgdir}/usr/share/applications"
+  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