diff options
author | Andreas Grapentin <andreas@grapentin.org> | 2019-02-25 17:40:33 +0100 |
---|---|---|
committer | Andreas Grapentin <andreas@grapentin.org> | 2019-02-25 17:44:34 +0100 |
commit | 3991403c0e7e43f6c6ad8fbd18e13441a3508290 (patch) | |
tree | 52ba9c128d30a2a110d8124cc94075511cc9a563 /pcr | |
parent | 5c7d0cd24deaaaff4388266881326219a651c6b9 (diff) | |
download | abslibre-3991403c0e7e43f6c6ad8fbd18e13441a3508290.tar.gz abslibre-3991403c0e7e43f6c6ad8fbd18e13441a3508290.tar.bz2 abslibre-3991403c0e7e43f6c6ad8fbd18e13441a3508290.zip |
pcr/python-filetype: added
Diffstat (limited to 'pcr')
-rw-r--r-- | pcr/python-filetype/PKGBUILD | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/pcr/python-filetype/PKGBUILD b/pcr/python-filetype/PKGBUILD new file mode 100644 index 000000000..043684728 --- /dev/null +++ b/pcr/python-filetype/PKGBUILD @@ -0,0 +1,24 @@ +# Maintainer: Andreas Grapentin <oaken-source@parabola.nu> +_pkgname=filetype +pkgname=(python{,2}-$_pkgname) +pkgver=1.0.4 +pkgrel=1 +pkgdesc="Small and dependency free Python package to infer file type and MIME type checking the magic numbers signature of a file or buffer." +arch=(any) +url="https://pypi.org/project/filetype/" +license=('GPL') + +_depends=() +makedepends=(python{,2}-setuptools) +source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz") +sha256sums=('366c50d0211798e696626f125134163ac2fff25a70131eec80a1d1a6196c1027') + +_package() { + depends=("$1" "${_depends[@]/#/$1-}") + cd "$srcdir"/$_pkgname-$pkgver + $1 setup.py install --root="$pkgdir" +} + +for _pkg in "${pkgname[@]}"; do + eval "package_$_pkg () { _package ${_pkg%%-*}; }" +done |