I was having problems with this PKGBUILD. This patch fixes things.
diff -u b/PKGBUILD a/PKGBUILD
--- b/PKGBUILD 2015-11-14 21:28:57.000000000 +0200
+++ a/PKGBUILD 2015-11-14 21:33:11.958220785 +0200
@@ -1,25 +1,33 @@
# Maintainer: Richard Neumann aka. rne <r dot neumann at homeinfo fullstop de>
pkgname='python-magic-git'
-pkgver='0.4.6'
-pkgrel=5
+pkgver=latest
+pkgrel=2
pkgdesc="Python 3 packages for alternative (github) implementation of python-magic"
arch=('any')
url='https://github.com/ahupp/python-magic'
license=('MIT')
depends=('python')
-makedepends=('git' 'sed' 'python')
+makedepends=('git' 'sed' 'python' 'python-setuptools')
+provides=('python-magic=$pkgver')
conflicts=('python-magic')
source=("${pkgname}::git+https://github.com/ahupp/python-magic")
md5sums=('SKIP')
pkgdir='pkg'
srcdir='src'
+pkgver() {
+ cd "${srcdir}/${pkgname}"
+ # Try to pull the version from setup.py
+ grep "version" setup.py | cut -d\' -f2
+}
+
package() {
local PYTHON="/usr/bin/env python3"
local USR_PATH="${pkgdir}/usr"
local LICENSE_DIR="${USR_PATH}/share/licenses/${pkgname}"
+
# Set up directories
install -d -m 755 ${USR_PATH}
@@ -31,11 +39,11 @@
cd "${srcdir}/${pkgname}"
# Fix setup.py for distutils.core
- sed -i 's/\(from setuptools.*\)/#\1/' setup.py
- sed -i 's/#\(from distutils.*\)/\1/' setup.py
+# sed -i 's/\(from setuptools.*\)/#\1/' setup.py
+# sed -i 's/#\(from distutils.*\)/\1/' setup.py
# Install python packages to $pkgdir
- ${PYTHON} setup.py install --prefix ${USR_PATH}
+ ${PYTHON} setup.py install --prefix "/usr" --root "$pkgdir"
# Install license file
install -m 644 LICENSE ${LICENSE_DIR}
Search Criteria
Package Details: python-magic-git 0.4.6-5
Git Clone URL: | https://aur.archlinux.org/python-magic-git.git (read-only) |
---|---|
Package Base: | python-magic-git |
Description: | Python 3 packages for alternative (github) implementation of python-magic |
Upstream URL: | https://github.com/ahupp/python-magic |
Keywords: | alternative magic python |
Licenses: | |
Conflicts: | |
Submitter: | None |
Maintainer: | schard (schard) |
Last Packager: | schard |
Votes: | 0 |
Popularity: | 0.000000 |
First Submitted: | 2015-09-29 15:50 |
Last Updated: | 2015-11-16 17:45 |
Dependencies (4)
- python
- git (git-git) (make)
- python (make)
- python-setuptools (make)
Can you please add some error information so I can reproduce any possible problems that you encountered with the PKGBUILD?