summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6277771822be6053d5b0dbbaa89c8cc8b088bbda (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
# Contributor: perlawk
# Maintainer: aksr <aksr at t-com dot me>
pkgname=match
pkgver=1.1
pkgrel=1
pkgdesc="A powerful tool for syntax analysis, the main idea of pattern matching comes from the SNOBOL4 language."
url="http://www.dmitry-kazakov.de/match/match.htm"
arch=('i686' 'x86_64')
license=('GPLv3')
categories=()
groups=()
depends=()
makedepends=()
optdepends=()
checkdepends=()
provides=()
conflicts=()
replaces=()
backup=()
install=
changelog=
source=("http://www.dmitry-kazakov.de/match/match_1_1.tgz")
noextract=()
options=(!strip)
md5sums=('cd1de3c51078902034b05d7e8e6c8919')
sha1sums=('412bee7e72821be67d7244c933b525b9bf4f6a5b')
sha256sums=('9661b18833f6f5c617a0cd99417bcb63cd110822d93da39e651cb12f77620d55')
 
prepare() {
  cd "${srcdir}/"
  sed -i '/SILENCE/d;' gcc.mak
}
build() {
  gcc -fpic -shared match.c -o libmatch.so
  make -f gcc.mak match

}
 
package() {
  cd "${srcdir}/"
  mkdir -p $pkgdir/usr/{bin,include,share/match,lib}/
  cp -a match "$pkgdir/usr/bin" 
  cp libmatch.so "$pkgdir/usr/lib/" 
  cp match.h pattern.h patran.h "$pkgdir/usr/include/" 
  cp match.htm *gif *jpg "$pkgdir/usr/share/$pkgname/" 
}