From f0c1cb4fdfc0c869bc90e5e926fe722560ebf319 Mon Sep 17 00:00:00 2001 From: ZaZam Date: Wed, 28 Jul 2021 17:24:17 +0300 Subject: [PATCH] added setuptools as makedeps and corrected package function --- .SRCINFO | 4 ++-- PKGBUILD | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index 076c4c0..a546814 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,11 +1,12 @@ pkgbase = mpdrandom-git pkgdesc = mpd albums randomizing script - pkgver = 1.1.2.r14.g0658b2d + pkgver = 1.3.0.r2.gf96680a pkgrel = 1 url = https://github.com/axujen/mpdrandom arch = any license = GPL3 makedepends = git + makedepends = python-setuptools depends = python depends = python-mpd2 provides = mpdrandom @@ -15,4 +16,3 @@ pkgbase = mpdrandom-git sha1sums = 155133e127d3d935d339cff2265a5f728a4ef0b1 pkgname = mpdrandom-git - diff --git a/PKGBUILD b/PKGBUILD index 0174940..0708f92 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -4,14 +4,14 @@ _gitauthor=axujen _gitname=mpdrandom pkgname=mpdrandom-git -pkgver=1.1.2.r14.g0658b2d +pkgver=1.3.0.r2.gf96680a pkgrel=1 pkgdesc="mpd albums randomizing script" arch=('any') url="https://github.com/$_gitauthor/$_gitname" license=('GPL3') depends=('python' 'python-mpd2') -makedepends=('git') +makedepends=('git' 'python-setuptools') provides=('mpdrandom') source=("git+https://github.com/$_gitauthor/$_gitname" 'mpdrandom.service') sha1sums=('SKIP' '155133e127d3d935d339cff2265a5f728a4ef0b1') @@ -28,7 +28,7 @@ build() { package() { cd "$srcdir/$_gitname" - python setup.py install --prefix="$pkgdir/usr" + python setup.py install --root="$pkgdir" --optimize=1 install -Dm644 "$srcdir/mpdrandom.service" "$pkgdir/usr/lib/systemd/user/mpdrandom.service" }