mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-02-03 00:17:46 +08:00
[skip-ci] python-send2trash: import as anki new deps
This commit is contained in:
parent
1abc18aeb7
commit
5f6a0658e9
43
python-send2trash/PKGBUILD
Normal file
43
python-send2trash/PKGBUILD
Normal file
@ -0,0 +1,43 @@
|
||||
# Maintainer: Morten Linderud <foxboron@archlinux.org>
|
||||
# Contributor: Balló György <ballogyor+arch at gmail dot com>
|
||||
|
||||
_pkgbase=send2trash
|
||||
pkgbase=python-$_pkgbase
|
||||
pkgname=('python3-send2trash' 'python2-send2trash')
|
||||
pkgver=1.5.0
|
||||
pkgrel=1
|
||||
pkgdesc="Send file to trash natively"
|
||||
arch=('any')
|
||||
url="https://github.com/hsoft/send2trash"
|
||||
license=('BSD')
|
||||
makedepends=('python3' 'python3-setuptools' 'python2' '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
|
||||
python3 setup.py build
|
||||
|
||||
cd ../$_pkgbase-$pkgver-python2
|
||||
python2 setup.py build
|
||||
}
|
||||
|
||||
package_python3-send2trash() {
|
||||
depends=('python')
|
||||
|
||||
cd $_pkgbase-$pkgver
|
||||
python3 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"
|
||||
}
|
Loading…
Reference in New Issue
Block a user