summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJokler2019-11-17 22:37:44 +0100
committerJokler2019-11-17 22:37:44 +0100
commitbd6d6f839f7c426c96ad8fe261f76eab5b578483 (patch)
tree89f804da19a79a008936a049b29a96f9e9ca2bc0
parentfeacdc12b50b7717a0882398c1449df5d2da901e (diff)
downloadaur-bd6d6f839f7c426c96ad8fe261f76eab5b578483.tar.gz
Improve source array and add build function
-rw-r--r--.SRCINFO5
-rw-r--r--PKGBUILD15
2 files changed, 10 insertions, 10 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 6ada8cdc5c2..16e31014966 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -10,11 +10,8 @@ pkgbase = campdown
depends = python-mutagen
depends = python-requests
depends = python-docopt
- provides = campdown
- conflicts = campdown
- conflicts = python-campdown
replaces = python-campdown
- source = https://files.pythonhosted.org/packages/c6/cc/6be7de0c0250f97d186f5f58455161b2ae5bb96d6681b966f8a91ad2a31e/campdown-1.46.tar.gz
+ source = https://files.pythonhosted.org/packages/source/c/campdown/campdown-1.46.tar.gz
sha256sums = e91e505368157319f660c615a2fffab757a414e025b5d6e6a69dc481952ad5b0
pkgname = campdown
diff --git a/PKGBUILD b/PKGBUILD
index 6a0227843fc..0ae8c3bc412 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -6,18 +6,21 @@ pkgrel=1
pkgdesc="Bandcamp track and album downloader"
arch=(any)
url="https://github.com/catlinman/campdown/"
-provides=('campdown')
-conflicts=('campdown' 'python-campdown')
-replaces=('python-campdown')
+replaces=("python-campdown")
license=(MIT)
depends=("python" "python-mutagen" "python-requests" "python-docopt")
makedepends=("python-setuptools")
-source=("https://files.pythonhosted.org/packages/c6/cc/6be7de0c0250f97d186f5f58455161b2ae5bb96d6681b966f8a91ad2a31e/${pkgname}-${pkgver}.tar.gz")
-sha256sums=('e91e505368157319f660c615a2fffab757a414e025b5d6e6a69dc481952ad5b0')
+source=("https://files.pythonhosted.org/packages/source/${pkgname::1}/$pkgname/$pkgname-$pkgver.tar.gz")
+sha256sums=("e91e505368157319f660c615a2fffab757a414e025b5d6e6a69dc481952ad5b0")
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ python setup.py build
+}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
- python setup.py install -O1 --root="${pkgdir}"
+ python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
install -Dm 644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README"
install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}