summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1cc63558f888fb991c560291fa408aea4b1bba29 (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: S├ębastien Luttringer

pkgname=agetpkg-git
pkgver=4.r0.g673e371
pkgrel=1
pkgdesc='Archlinux Archive Get Package (Git version)'
arch=('any')
url='https://github.com/seblu/agetpkg'
license=('GPL2')
makedepends=('git')
depends=('python' 'python-xdg')
conflicts=('agetpkg')
provides=('agetpkg')
source=("${pkgname}::git+${url}.git")
sha256sums=('SKIP')

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

package() {
  cd "$srcdir/$pkgname"
  install -Dm755 agetpkg "$pkgdir/usr/bin/agetpkg"
}

# vim:set ts=2 sw=2 et: