summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3faf010003f24126e7a2a300fc08bd3f6264b8dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Maintainer: Sherlock Holo <sherlockya@gmail.com>
pkgname=pyunz-git
_pkgname=pyunz
pkgver=0.2.3.r4.ga2db5ac
pkgrel=4
pkgdesc='extract packages easily'
arch=(any)
url='https://github.com/Sherlock-Holo/pyunz'
license=('GPL3')
depends=('python' 'zip' 'unzip' 'p7zip')
makedepends=('git' 'python-setuptools')
source=("git+https://github.com/Sherlock-Holo/${_pkgname}")

pkgver() {
  cd "$_pkgname"
  git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

package(){
        cd $srcdir/$_pkgname
        python3 setup.py install --root="$pkgdir/" --optimize=1
        mv "${pkgdir}/usr/bin/pyunz.py" "${pkgdir}/usr/bin/pyunz"
        mkdir -p "${pkgdir}/usr/share/licenses/${pkgname}"
        install -m755 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt"
}
md5sums=('SKIP')