[arch-commits] Commit in python-send2trash/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Sat Jun 30 18:07:57 UTC 2018
Date: Saturday, June 30, 2018 @ 18:07:56
Author: foutrelis
Revision: 348866
archrelease: copy trunk to community-staging-any
Added:
python-send2trash/repos/community-staging-any/
python-send2trash/repos/community-staging-any/PKGBUILD
(from rev 348865, python-send2trash/trunk/PKGBUILD)
----------+
PKGBUILD | 45 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 45 insertions(+)
Copied: python-send2trash/repos/community-staging-any/PKGBUILD (from rev 348865, python-send2trash/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2018-06-30 18:07:56 UTC (rev 348866)
@@ -0,0 +1,45 @@
+# $Id$
+# Maintainer: Morten Linderud <foxboron at archlinux.org>
+# Contributor: Balló György <ballogyor+arch at gmail dot com>
+
+_pkgbase=send2trash
+pkgbase=python-$_pkgbase
+pkgname=('python-send2trash' 'python2-send2trash')
+pkgver=1.5.0
+pkgrel=2
+pkgdesc="Send file to trash natively"
+arch=('any')
+url="https://github.com/hsoft/send2trash"
+license=('BSD')
+makedepends=('python' 'python-setuptools'
+ 'python' 'python2-setuptools')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/hsoft/$_pkgbase/archive/$pkgver.tar.gz")
+sha256sums=('7cebc0ffc8b6d6e553bce9c6bb915614610ba2dec17c2f0643b1b97251da2a41')
+
+prepare() {
+ cp -a $_pkgbase-$pkgver{,-python2}
+}
+
+build() {
+ cd $_pkgbase-$pkgver
+ python setup.py build
+
+ cd ../$_pkgbase-$pkgver-python2
+ python2 setup.py build
+}
+
+package_python-send2trash() {
+ depends=('python')
+
+ cd $_pkgbase-$pkgver
+ python setup.py install --root "$pkgdir" --optimize=1 --skip-build
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+package_python2-send2trash() {
+ depends=('python2')
+
+ cd $_pkgbase-$pkgver-python2
+ python2 setup.py install --root "$pkgdir" --optimize=1 --skip-build
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
More information about the arch-commits
mailing list