blob: 24b3ed30184f141ab1562dc467cb3c3fb8d7f7be (
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
44
45
46
47
48
49
50
51
|
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>
pkgname=bison-git
pkgver=3.0.4.r16.gd6445ec1
pkgrel=2
pkgdesc="The GNU general-purpose parser generator"
arch=('i686' 'x86_64')
url="https://www.gnu.org/software/bison/bison.html"
license=('GPL3')
depends=('glibc')
makedepends=('git' 'gzip' 'rsync' 'tar')
provides=('bison')
conflicts=('bison')
source=("git+https://git.savannah.gnu.org/git/bison.git"
"sun-cc.patch")
sha256sums=('SKIP'
'ecde4c4e21e16d4b2a0bf6fc22ada353cc7e6977af340de967fa35387ce921e1')
prepare() {
cd "bison"
patch -p1 -i "$srcdir/sun-cc.patch"
git submodule update --init "submodules/autoconf"
}
pkgver() {
cd "bison"
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "bison"
./bootstrap
./configure --prefix="/usr"
make
}
check() {
cd "bison"
make check
}
package() {
cd "bison"
make DESTDIR="$pkgdir" install
}
|