45 lines
1.6 KiB
Bash
45 lines
1.6 KiB
Bash
#!/usr/bin/bash
|
|
# JOBoRun : Jwm OpenBox Obarun RUNit
|
|
# Maintainer : Joe Bo Run <joborun@disroot.org>
|
|
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
|
|
# Website : https://pozol.eu
|
|
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
|
|
|
pkgbase=pyexiftool
|
|
_pkgname=PyExifTool
|
|
pkgname='python-pyexiftool'
|
|
pkgver=0.5.5
|
|
pkgrel=02
|
|
pkgdesc="Library to communicate with an instance of ExifTool command-line application"
|
|
arch=('any')
|
|
url="https://github.com/sylikc/${pkgbase}"
|
|
makedepends=("python-pip")
|
|
_pkgname_prefix="${_pkgname:0:1}"
|
|
_pkgname_underscored="${_pkgname//-/_}"
|
|
_pkgurl="https://files.pythonhosted.org/packages/py3/$_pkgname_prefix/$_pkgname/$_pkgname_underscored-$pkgver-py3-none-any.whl"
|
|
source=("$_pkgurl")
|
|
|
|
package() {
|
|
cd "$srcdir" || exit
|
|
PIP_CONFIG_FILE=/dev/null pip install \
|
|
--root="$pkgdir" \
|
|
--isolated \
|
|
--ignore-installed \
|
|
--no-deps \
|
|
--no-compile \
|
|
--no-warn-script-location \
|
|
${_pkgname//-/_}-$pkgver-py3-none-any.whl
|
|
python -O -m compileall -s "$pkgdir" "$pkgdir/usr/lib/"
|
|
mapfile -t direct_url_file < <(find "$pkgdir"/usr/lib -type f -name 'direct_url.json')
|
|
rm -rvf "${direct_url_file[@]}" || true
|
|
install -Dm644 "${_pkgname//-/_}-$pkgver.dist-info/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
|
}
|
|
|
|
#---- license gpg-key sha256sums ----
|
|
|
|
license=("GPL3")
|
|
|
|
sha256sums=(7048aab1cb83726d7bf0113a5acb9d9d52f9e16817e39595fa59c8ea0563bf5a) # PyExifTool-0.5.5-py3-none-any.whl
|
|
|
|
## 5a88793ebba32012968a8a447672e16b65a20eb7e7c8f126adf6a988340378d7 python-pyexiftool-0.5.5-02-any.pkg.tar.lz
|
|
|