blob: cb737c01fcce1c373965a1a853d8611732ebf4be (
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
|
# Maintainer: Mario Rodas <marsam@users.noreply.github.com>
# Contributor: Jonathon Fernyhough <jonathon_at_manjaro_dot_org>
pkgname=ats2-postiats
_pkgname=ATS2-Postiats-gmp
pkgver=0.4.2
pkgrel=1
pkgdesc="Statically typed programming language"
arch=('i686' 'x86_64')
url="http://www.ats-lang.org/"
license=('GPL3')
depends=('bash' 'gmp')
options=('staticlibs' '!emptydirs' '!makeflags')
install="${pkgname}.install"
source=("https://downloads.sourceforge.net/project/ats2-lang/ats2-lang/ats2-postiats-${pkgver}/${_pkgname}-${pkgver}.tgz")
md5sums=(e2f0f6c38868bb6b85f77fd1d9222b23)
sha1sums=(a869ba92d673082cd30fc6c2368d3948eef772fa)
build() {
cd "${_pkgname}-${pkgver}"
# NOTE: Before update a version check if has been correctly packaged
# sed -i "s/0.2.11/${pkgver}/g" VERSION
# sed -i "49s/0.3.9/${pkgver}/g" configure.ac
autoconf
./configure --prefix=/usr
make all
}
package() {
cd "${_pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
local profiled="${pkgdir}/etc/profile.d"
local patshome="/usr/lib/${pkgname}-${pkgver}"
mkdir -p "${profiled}"
echo "export PATSHOME=${patshome}" > "${profiled}/${pkgname}.sh"
echo "setenv PATSHOME ${patshome}" > "${profiled}/${pkgname}.csh"
chmod 0755 "${profiled}/${pkgname}.sh" "${profiled}/${pkgname}.csh"
}
# Local Variables:
# compile-command: "makepkg -sm && mksrcinfo"
# End:
|