summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5ecd8f2b86d6949346628e8ca12ce4e95086b444 (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
# Maintainer: Kevin MacMartin <prurigro at gmail dot com>

_pkgname=aurood
pkgname=${_pkgname}-git
pkgver=20120206.r7.a59889c
pkgrel=1
pkgdesc="Out of date notifier for AUR packages"
url="https://github.com/falconindy/${_pkgname}"
license=('custom')
arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h')
depends=('pacman')
makedepends=('git')
source=("git+https://github.com/falconindy/${_pkgname}.git#branch=master")
sha512sums=('SKIP')

pkgver() {
    cd $_pkgname
    printf "%s.r%s.%s" "$(git show -s --format=%ci master | sed 's/\ .*//g;s/-//g')" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
    cd $_pkgname
    make
}

package() {
    cd $_pkgname
    install -Dm755 $_pkgname "${pkgdir}/usr/bin/${_pkgname}"
}