summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b01142db99383bbdc1b7264a899032490ce183c4 (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
27
28
29
30
31
32
33
34
35
36
37
# Maintainer : Johnathan Jenkins <twodopeshaggy@gmail.com>
# Contributor: Trustin Lee <t@motd.kr>
# Contributor: Renato Garcia <fgarcia.renato@gmail.com>

pkgname=trash-cli-git
_pkgname=trash-cli
pkgver=457.468afec
pkgrel=1
pkgdesc='Command line trashcan (recycle bin) interface'
arch=('any')
url="http://github.com/andreafrancia/${_pkgname}"
license=('GPL')
depends=('python2')
makedepends=('python2-setuptools')
provides=('trash-cli')
conflicts=('trash-cli')
source=("git+http://github.com/andreafrancia/${_pkgname}.git"
	53.patch)
md5sums=('SKIP'
         '5f9f91c242c4c79de663e6481d226451')

pkgver() {
  cd "${_pkgname}"
  echo "$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}

build() {
  cd "${_pkgname}"
  patch -Np1 -i "$srcdir/53.patch"
  python2 setup.py build
}

package(){
  cd "${_pkgname}"
  python2 setup.py install --root="${pkgdir}"
}