summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 15546a17bccb3cf94bec5e36bed6e0395325f82e (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
38
39
40
41
42
43
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>

pkgname=gengetopt-git
pkgver=2.22.6.r0.g9d70a9b
pkgrel=1
pkgdesc="A tool to write command line option parsing code for C programs"
arch=('i686' 'x86_64')
url="https://www.gnu.org/software/gengetopt/"
license=('GPL3')
depends=('glibc')
makedepends=('git')
provides=('gengetopt')
conflicts=('gengetopt')
options=('!makeflags')
source=("git+https://git.savannah.gnu.org/git/gengetopt.git")
sha256sums=('SKIP')


pkgver() {
  cd "gengetopt"

  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/[-_]/./g;s/^rel.//'
}

build() {
  cd "gengetopt"

  autoreconf -i
  ./configure --prefix="/usr"
  make
}

check() {
  cd "gengetopt"

  make check
}

package() {
  cd "gengetopt"

  make DESTDIR="$pkgdir" install
}