From a6b74dbbb6db534701ef7e99bbd002de58b92643 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikita=20Volodin=20=5B=D0=9D=D0=B8=D0=BA=D0=B8=D1=82=D0=B0?= =?UTF-8?q?=20=D0=92=D0=BE=D0=BB=D0=BE=D0=B4=D0=B8=D0=BD=5D?= Date: Mon, 29 Oct 2018 13:51:07 -0400 Subject: [PATCH] feat(PKGBUILD): update and use python2 --- .SRCINFO | 10 ++++++---- PKGBUILD | 12 ++++++------ 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index c30bbe7..c9ed6d7 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,13 +1,15 @@ +# Generated by mksrcinfo v8 +# Mon Oct 29 17:48:14 UTC 2018 pkgbase = mpdrandom-git pkgdesc = mpd albums randomizing script - pkgver = 1.1.r5.geb67e9a - pkgrel = 2 + pkgver = 1.1.2.r2.g8565ff8 + pkgrel = 1 url = https://github.com/axujen/mpdrandom arch = any license = unknown makedepends = git - depends = python - depends = python-mpd2 + depends = python2 + depends = python2-mpd2 provides = mpdrandom source = git+https://github.com/axujen/mpdrandom source = mpdrandom.service diff --git a/PKGBUILD b/PKGBUILD index 5620b2f..be849af 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -4,16 +4,16 @@ _gitauthor=axujen _gitname=mpdrandom pkgname=mpdrandom-git -pkgver=1.1.r5.geb67e9a -pkgrel=2 +pkgver=1.1.2.r2.g8565ff8 +pkgrel=1 pkgdesc="mpd albums randomizing script" arch=('any') url="https://github.com/$_gitauthor/$_gitname" license=('unknown') -depends=('python' 'python-mpd2') +depends=('python2' 'python2-mpd2') makedepends=('git') provides=('mpdrandom') -source=('git+https://github.com/axujen/mpdrandom' 'mpdrandom.service') +source=("git+https://github.com/$_gitauthor/$_gitname" 'mpdrandom.service') md5sums=('SKIP' '6a7b6b63bb1ce777372deac19f420b2e') pkgver() { @@ -23,12 +23,12 @@ pkgver() { build() { cd "$srcdir/$_gitname" - python setup.py build + python2 setup.py build } package() { cd "$srcdir/$_gitname" - python setup.py install --prefix="$pkgdir/usr" + python2 setup.py install --prefix="$pkgdir/usr" install -Dm644 "$srcdir/mpdrandom.service" "$pkgdir/usr/lib/systemd/user/mpdrandom.service" }