48 lines
1.6 KiB
Bash
48 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"
|
|
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
|
|
|
_name=mutagen
|
|
pkgname=python2-mutagen
|
|
pkgver=1.43.1
|
|
pkgrel=01
|
|
arch=('any')
|
|
pkgdesc="An audio metadata tag reader and writer (python2 library)"
|
|
url="https://github.com/quodlibet/mutagen"
|
|
depends=('python2-setuptools')
|
|
source=("https://github.com/quodlibet/${_name}/releases/download/release-$pkgver/${_name}-$pkgver.tar.gz"{,.sig})
|
|
|
|
prepare() {
|
|
mv -v "${_name}-${pkgver}" "${pkgname}-${pkgver}"
|
|
cd "${pkgname}-$pkgver"
|
|
for script in {mid3{cp,iconv,v2},moggsplit,mutagen-{inspect,pony}}; do
|
|
sed -e "s/${script}/${script}2/g" -i setup.py
|
|
mv -v "man/${script}"{,2}.1
|
|
done
|
|
}
|
|
|
|
build() {
|
|
cd "${pkgname}-${pkgver}"
|
|
python2 setup.py build
|
|
}
|
|
|
|
package() {
|
|
cd "${pkgname}-${pkgver}"
|
|
python2 setup.py install --skip-build \
|
|
--optimize=1 \
|
|
--prefix=/usr \
|
|
--root="${pkgdir}"
|
|
install -vDm 644 {NEWS,README.rst} \
|
|
-t "${pkgdir}/usr/share/doc/${pkgname}"
|
|
}
|
|
|
|
#---- license gpg-key sha256sums ----
|
|
|
|
license=('GPL2')
|
|
|
|
validpgpkeys=('0EBF782C5D53F7E5FB02A66746BD761F7A49B0EC') # Christoph Reiter <reiter.christoph@gmail.com>
|
|
|
|
sha256sums=(d873baeb7815311d3420aab0a1d83f050f628228cbc2d6045a14a16460411bc9 # mutagen-1.43.1.tar.gz
|
|
1deb4c09ab8e0264dcc5176f2001d732f70ec6d28266a20a9dc856c26bd6856d) # mutagen-1.43.1.tar.gz.sig
|