Created
June 2, 2018 00:23
-
-
Save mys721tx/6ab49685ec2a1b3cb657e62f8fd604b2 to your computer and use it in GitHub Desktop.
splitting google-auth-httplib2-git
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/PKGBUILD b/PKGBUILD | |
index 7ab045a..42fe6d6 100644 | |
--- a/PKGBUILD | |
+++ b/PKGBUILD | |
@@ -1,28 +1,45 @@ | |
# Maintainer: Ainola | |
-pkgname=python2-google-auth-httplib2-git | |
+pkgbase=python-google-auth-httplib2-git | |
+pkgname=python-google-auth-httplib2-git | |
+true && pkgname=("python-google-auth-httplib2-git" "python2-google-auth-httplib2-git") | |
pkgver=r8.e7cd722 | |
pkgrel=1 | |
pkgdesc="An httplib2 transport for google-auth" | |
-arch=('any') | |
+arch=("any") | |
url="https://github.com/GoogleCloudPlatform/google-auth-library-python-httplib2" | |
-license=('Apache') | |
-makedepends=('python2-setuptools') | |
-depends=('python2' 'python2-google-auth' 'python2-httplib2' 'python2-six') | |
+license=("Apache") | |
+depends=("python" "python2") | |
+makedepends=("python-setuptools" "python2-setuptools") | |
source=("git+https://github.com/GoogleCloudPlatform/google-auth-library-python-httplib2.git") | |
-sha256sums=('SKIP') | |
+sha256sums=("SKIP") | |
pkgver() { | |
- cd "$srcdir/google-auth-library-python-httplib2" | |
+ cd "${srcdir}/google-auth-library-python-httplib2" | |
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" | |
} | |
build() { | |
- cd "$srcdir/google-auth-library-python-httplib2" | |
- python2 setup.py build | |
+ cd "${srcdir}/google-auth-library-python-httplib2" | |
+ python setup.py build | |
} | |
-package() { | |
- cd "$srcdir/google-auth-library-python-httplib2" | |
- python2 setup.py install --root="$pkgdir/" --optimize=1 | |
+package_python-google-auth-httplib2-git() { | |
+ depends=("python" "python-google-auth" "python-httplib2" "python-six") | |
+ provides=("python-google-auth-httplib2-git") | |
+ replaces=("python-google-auth-httplib2") | |
+ conflicts=("python-google-auth-httplib2") | |
+ | |
+ cd "${srcdir}/google-auth-library-python-httplib2" | |
+ python setup.py install --root="${pkgdir}/" --optimize=1 | |
+} | |
+ | |
+package_python2-google-auth-httplib2-git() { | |
+ depends=("python2" "python2-google-auth" "python2-httplib2" "python2-six") | |
+ provides=("python2-google-auth-httplib2-git") | |
+ replaces=("python2-google-auth-httplib2") | |
+ conflicts=("python2-google-auth-httplib2") | |
+ | |
+ cd "${srcdir}/google-auth-library-python-httplib2" | |
+ python2 setup.py install --root="${pkgdir}/" --optimize=1 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment