blob: 7363e23d6047b1f33fc48b267d6340eb61c1b5a3 (
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.23.r0.g0cfa550
pkgrel=2
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' 'gengen' 'gengetopt')
provides=("gengetopt=$pkgver")
conflicts=('gengetopt')
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 -fi
./configure \
--prefix="/usr"
make
}
check() {
cd "gengetopt"
make check
}
package() {
cd "gengetopt"
make DESTDIR="$pkgdir" install
}
|