summaryrefslogtreecommitdiff
path: root/packaging/PKGBUILD
diff options
context:
space:
mode:
authorbiao716.wang <biao716.wang@samsung.com>2022-10-28 12:42:00 +0900
committerbiao716.wang <biao716.wang@samsung.com>2022-10-28 22:27:21 +0900
commit1e5da010ab8cb514b495eb7c1d3afce6baec7f4d (patch)
tree5b76563463d1b46ff399bf99907c54e5ce03e561 /packaging/PKGBUILD
parentb0bfbb2cab1b0ebdc9657c89de6bc21ab0de173b (diff)
downloadgit-buildpackage-1e5da010ab8cb514b495eb7c1d3afce6baec7f4d.tar.gz
git-buildpackage-1e5da010ab8cb514b495eb7c1d3afce6baec7f4d.tar.bz2
git-buildpackage-1e5da010ab8cb514b495eb7c1d3afce6baec7f4d.zip
port code from python2.x to python3.x
Change-Id: I798c72d07e44839cc5d1e25ec75fca0bd8068567 Signed-off-by: biao716.wang <biao716.wang@samsung.com>
Diffstat (limited to 'packaging/PKGBUILD')
-rwxr-xr-xpackaging/PKGBUILD10
1 files changed, 5 insertions, 5 deletions
diff --git a/packaging/PKGBUILD b/packaging/PKGBUILD
index 60ffa9f6..b26bbb70 100755
--- a/packaging/PKGBUILD
+++ b/packaging/PKGBUILD
@@ -8,7 +8,7 @@ url="https://honk.sigxcpu.org/piki/projects/git-buildpackage/"
license=('GPLv2')
conflicts=('git-buildpackage')
provides=('git-buildpackage')
-makedepends=('python2-distribute' 'gtk-doc' 'docbook-sgml' 'docbook-utils')
+makedepends=('python3-distribute' 'gtk-doc' 'docbook-sgml' 'docbook-utils')
source=(git-buildpackage_${pkgver}.tar.gz)
sha256sums=(SKIP)
@@ -24,7 +24,7 @@ prepare()
build() {
cd $srcdir/$pkgbase-$pkgver
WITHOUT_NOSETESTS=1 \
- python2 setup.py build
+ python3 setup.py build
# Prepare apidocs
epydoc -n git-buildpackage --no-sourcecode -o docs/apidocs/ \
@@ -36,12 +36,12 @@ build() {
package_git-buildpackage-common() {
depends=('man-db'
- 'python2'
+ 'python3'
'git')
optdepends=('pristine-tar: regenerate pristine tarballs')
cd $srcdir/$pkgbase-$pkgver
WITHOUT_NOSETESTS=1 \
- python2 setup.py install \
+ python3 setup.py install \
--root="$pkgdir" \
--prefix=/usr \
-O1
@@ -56,7 +56,7 @@ package_git-buildpackage-rpm() {
provides=("tizen-gbp-rpm=20160302")
cd $srcdir/$pkgbase-$pkgver
WITHOUT_NOSETESTS=1 \
- python2 setup.py install \
+ python3 setup.py install \
--root="$pkgdir" \
--prefix=/usr \
-O1