mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-23 18:14:51 +08:00
Sync 2: let's push some Python deps for Everpad
This commit is contained in:
parent
fccbe06148
commit
f1e4794cdf
32
py-oauth2/PKGBUILD
Normal file
32
py-oauth2/PKGBUILD
Normal file
@ -0,0 +1,32 @@
|
||||
# Maintainer: Ernesto Manríquez <alejandronova@gmail.com>
|
||||
|
||||
pkgname=py-oauth2
|
||||
pkgver=0.0.6
|
||||
pkgrel=1
|
||||
pkgdesc="A Python wrapper for the OAuth2 specification"
|
||||
arch=('x86_64')
|
||||
url=("http://liluo.org/py-oauth2/")
|
||||
license=('MIT')
|
||||
depends=('python2-magic' 'python2-oauth2' 'python2-sqlalchemy' 'python2-beautifulsoup')
|
||||
makedepends=('python2-distribute')
|
||||
source=("https://github.com/liluo/$pkgname/archive/v$pkgver.zip")
|
||||
sha256sums=('3dddabec379c2d0f7ceac6f04297b03590befa4561c659512fbfa59dc2bf896a')
|
||||
|
||||
build() {
|
||||
cd "$srcdir/$pkgname-$pkgver"
|
||||
|
||||
python2 setup.py build
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$srcdir/$pkgname-$pkgver"
|
||||
|
||||
python2 setup.py install --root=$pkgdir
|
||||
|
||||
}
|
||||
|
||||
# vim:set ts=2 sw=2 et:
|
||||
|
||||
|
||||
|
||||
|
25
python2-html2text/PKGBUILD
Normal file
25
python2-html2text/PKGBUILD
Normal file
@ -0,0 +1,25 @@
|
||||
# Maintainer: Ernesto Manríquez <alejandronova@gmail.com>
|
||||
|
||||
pkgname=python2-html2text
|
||||
pkgver=3.200.3
|
||||
pkgrel=3
|
||||
pkgdesc="Converts a page of HTML into clean, easy-to-read plain ASCII text."
|
||||
arch=('any')
|
||||
url="http://www.aaronsw.com/2002/html2text"
|
||||
license=('GPL3')
|
||||
depends=('python2')
|
||||
makedepends=('python-distribute')
|
||||
source=("http://pypi.python.org/packages/source/h/html2text/html2text-$pkgver.tar.gz")
|
||||
md5sums=('98162c467ddafc1a63bff8db98f03d14')
|
||||
|
||||
package() {
|
||||
cd "$srcdir/html2text-$pkgver"
|
||||
python2 setup.py install --root="$pkgdir" --optimize=1
|
||||
find "$pkgdir" -name '*.py' -print0 |xargs -0 \
|
||||
sed -i -e 's,^#!/usr/bin/env python$,#!/usr/bin/env python2,' \
|
||||
-e 's,^#!/usr/bin/python$,#!/usr/bin/python2,'
|
||||
install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
|
||||
install -m755 "$pkgdir/usr/bin/html2text" "$pkgdir/usr/bin/html2text_py"
|
||||
rm "$pkgdir/usr/bin/html2text"
|
||||
}
|
||||
|
20
python2-httplib2/PKGBUILD
Normal file
20
python2-httplib2/PKGBUILD
Normal file
@ -0,0 +1,20 @@
|
||||
# Maintainer: Ernesto Manríquez <alejandronova@gmail.com>
|
||||
|
||||
pkgname=python2-httplib2
|
||||
_pkgname=httplib2
|
||||
pkgver=0.8
|
||||
pkgrel=1
|
||||
pkgdesc="A comprehensive HTTP client library"
|
||||
arch=('any')
|
||||
url="http://code.google.com/p/httplib2"
|
||||
license=('MIT')
|
||||
depends=('python2')
|
||||
replaces=('python-httplib2')
|
||||
source=("http://$_pkgname.googlecode.com/files/$_pkgname-$pkgver.tar.gz")
|
||||
md5sums=('a143657998f6752be998e2ec740e7dec')
|
||||
|
||||
package() {
|
||||
cd "$srcdir/$_pkgname-$pkgver"
|
||||
python2 setup.py install --prefix=/usr -O2 --root="$pkgdir"
|
||||
chmod 644 $pkgdir/usr/lib/python2.7/site-packages/httplib2/*
|
||||
}
|
30
python2-magic/PKGBUILD
Normal file
30
python2-magic/PKGBUILD
Normal file
@ -0,0 +1,30 @@
|
||||
# Maintainer: Ernesto Manríquez <alejandronova@gmail.com>
|
||||
|
||||
pkgname=python2-magic
|
||||
pkgver=5.14
|
||||
pkgrel=1
|
||||
pkgdesc='Python bindings to allow you to access the libmagic api.'
|
||||
arch=('i686' 'x86_64')
|
||||
url='http://darwinsys.com/file/'
|
||||
license=('custom')
|
||||
depends=('file' 'python2')
|
||||
conflicts=('python-magic')
|
||||
replaces=('python-magic')
|
||||
provides=('python-magic')
|
||||
install=$pkgname.install
|
||||
source=("ftp://ftp.astron.com/pub/file/file-${pkgver}.tar.gz")
|
||||
md5sums=('c26625f1d6773ad4bc5a87c0e315632c')
|
||||
|
||||
build() {
|
||||
cd "file-${pkgver}/python"
|
||||
sed -i 's@/usr/bin/python@/usr/bin/python2@' ../magic/Magdir/python
|
||||
python2 setup.py build
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "file-${pkgver}/python"
|
||||
mkdir -p "${pkgdir}/usr/lib/python2.7/lib-dynload"
|
||||
cp build/lib/magic.py "${pkgdir}/usr/lib/python2.7/lib-dynload/"
|
||||
install -dm755 "${pkgdir}/usr/share/licenses/${pkgname}"
|
||||
install -Dm644 "${srcdir}/file-${pkgver}/COPYING" "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
|
||||
}
|
9
python2-magic/python2-magic.install
Normal file
9
python2-magic/python2-magic.install
Normal file
@ -0,0 +1,9 @@
|
||||
post_install() {
|
||||
echo "Please note that there is another version of python-magic, incompatible"
|
||||
echo "with this one, available at http://pypi.python.org/pypi/python-magic/"
|
||||
echo "Make sure this is the version you want."
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
post_install
|
||||
}
|
20
python2-oauth2/PKGBUILD
Normal file
20
python2-oauth2/PKGBUILD
Normal file
@ -0,0 +1,20 @@
|
||||
# Maintainer: Ernesto Manríquez <alejandronova@gmail.com>
|
||||
|
||||
pkgname=python2-oauth2
|
||||
pkgver=1.5.211
|
||||
pkgrel=1
|
||||
_libname=${pkgname/python2-/}
|
||||
pkgdesc="A fully tested, abstract interface to creating OAuth clients and servers"
|
||||
arch=(any)
|
||||
url="https://github.com/simplegeo/python-oauth2"
|
||||
license=('GPL')
|
||||
depends=(python2-httplib2)
|
||||
makedepends=(python2-distribute)
|
||||
source=(http://pypi.python.org/packages/source/${_libname:0:1}/$_libname/$_libname-$pkgver.tar.gz)
|
||||
md5sums=(987ad7365a70e2286bd1cebb344debbc)
|
||||
|
||||
build() {
|
||||
cd "$srcdir/$_libname-$pkgver"
|
||||
python2 setup.py install --root=$pkgdir
|
||||
rm -rf "$pkgdir"/usr/lib/python*/site-packages/tests
|
||||
}
|
27
python2-regex/PKGBUILD
Normal file
27
python2-regex/PKGBUILD
Normal file
@ -0,0 +1,27 @@
|
||||
# Maintainer: Ernesto Manríquez <alejandronova@gmail.com>
|
||||
|
||||
pkgname=python2-regex
|
||||
pkgver=0.1.20120506
|
||||
pkgrel=1
|
||||
pkgdesc="Alternative regular expression module, to replace re."
|
||||
arch=('x86_64')
|
||||
url="https://code.google.com/p/mrab-regex-hg/"
|
||||
license=('custom')
|
||||
depends=('python2')
|
||||
makedepends=('python2-distribute')
|
||||
conflicts=('python2-regex-hg')
|
||||
source=("https://launchpad.net/ubuntu/+archive/primary/+files/python-regex_${pkgver}.orig.tar.gz")
|
||||
sha256sums=('f3243f10336cb9625bcd1d06a201854d915287700e4e4668401f4335c8de056f')
|
||||
|
||||
build() {
|
||||
cd "$srcdir/regex-${pkgver}"
|
||||
|
||||
python2 setup.py build
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "${srcdir}/regex-${pkgver}"
|
||||
|
||||
python2 setup.py install --prefix=/usr --root="${pkgdir}"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user