summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b4bf0e3e6d20b5427f74b45e24d4c0682a143d74 (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
# Maintainer: Nathan Lowe <techwiz96@gmail.com>
pkgname=matiec-hg
provides=('matiec')
conflicts=('matiec')
_pkgver=0.1
pkgver=${_pkgver}.r1879.e5ddbaf756cb
pkgrel=1
pkgdesc="An open source compiler for the programming languages defined in the IEC 61131-3 standard"
builddepends=('mercurial')
arch=('i686' 'x86_64')
url="https://bitbucket.org/mjsousa/matiec"
license=('GPL3')
source=("hg+$url")
sha256sums=('SKIP')

pkgver() {
  cd "${srcdir}/${pkgname}"
  printf "${_pkgver}.r%s.%s" "$(hg identify -n)" "$(hg identify -i)"
}

build() {
  cd "${srcdir}/${pkgname}"
  autoreconf -i
  ./configure --prefix=/usr
  make
}

package() {
  cd "${srcdir}/${pkgname}"
  make DESTDIR="${pkgdir}" install
}