[arch-commits] Commit in python-yapsy/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Fri Oct 25 16:05:21 UTC 2019
Date: Friday, October 25, 2019 @ 16:05:20
Author: felixonmars
Revision: 519362
archrelease: copy trunk to community-staging-any
Added:
python-yapsy/repos/community-staging-any/
python-yapsy/repos/community-staging-any/PKGBUILD
(from rev 519361, python-yapsy/trunk/PKGBUILD)
----------+
PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
Copied: python-yapsy/repos/community-staging-any/PKGBUILD (from rev 519361, python-yapsy/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2019-10-25 16:05:20 UTC (rev 519362)
@@ -0,0 +1,38 @@
+# Maintainer: David Runge <dave at sleepmap.de>
+_name=Yapsy
+pkgname=python-yapsy
+pkgver=1.12.2
+pkgrel=2
+pkgdesc="A simple plugin system for Python applications"
+arch=('any')
+url="http://yapsy.sourceforge.net/"
+license=('BSD')
+depends=('python')
+makedepends=('python-setuptools')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
+sha512sums=('3fdb4de1a6d8f836e22d82354492b99ec9883443c389393d25ea40a08bb0b6ae03db9c947af55237b67764facd4d55a09a36cdba107c8d9202f3700fd55c31fa')
+
+prepare() {
+ mv -v "${_name}-$pkgver" "$pkgname-$pkgver"
+}
+
+build() {
+ cd "$pkgname-$pkgver"
+ python setup.py build
+}
+
+check() {
+ cd "$pkgname-$pkgver"
+ python runtests.py
+}
+
+package() {
+ cd "$pkgname-$pkgver"
+ python setup.py install --prefix=/usr \
+ --skip-build \
+ --optimize=1 \
+ --root="${pkgdir}"
+ install -vDm 644 LICENSE.txt -t "${pkgdir}/usr/share/licenses/${pkgname}/"
+ install -vDm 644 {CHANGELOG,README}.txt \
+ -t "${pkgdir}/usr/share/doc/${pkgname}"
+}
More information about the arch-commits
mailing list