summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 03cede78280800baca3bd32cd53d3df4e9caf80c (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
# Maintainer: wenLiangcan <boxeed at gmail dot com>

_pkgname=whoneeds
pkgname=${_pkgname}-git
pkgver=r7.c8f4725
pkgrel=1
pkgdesc="A fast whoneeds implemention in Python for Arch Linux"
arch=('any')
url="https://gist.github.com/lilydjwg/69111965e237fdb67d1378703173709f"
license=('unkown')
depends=('python' 'pyalpm')
provides=(${_pkgname})
conflicts=(${_pkgname})
source=("${_pkgname}"::'git+https://gist.github.com/69111965e237fdb67d1378703173709f.git')
md5sums=('SKIP')

pkgver() {
    cd "$srcdir/$_pkgname"
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
    cd "$srcdir/$_pkgname"
    install -Dm755 "${_pkgname}" "${pkgdir}/usr/bin/${_pkgname}"
    install -Dm644 '_whoneeds' "${pkgdir}/usr/share/zsh/site-functions/_whoneeds"
}