blob: bde8f5d703837399c0825162c3d13eee95ad45ed (
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
|
# Maintainer: Mario Rodas <marsam@users.noreply.github.com>
pkgname=ats2-postiats
_pkgname=ATS2-Postiats
pkgver=0.2.10
pkgrel=1
pkgdesc="Statically typed programming language"
arch=('i686' 'x86_64')
url="http://www.ats-lang.org/"
license=('GPL3')
depends=('bash' 'gmp')
optdepends=()
options=('staticlibs' '!emptydirs' '!makeflags')
source=("http://downloads.sourceforge.net/project/ats2-lang/ats2-lang/ats2-postiats-${pkgver}/${_pkgname}-${pkgver}.tgz")
sha256sums=('27d115219472c994866459f0024310abc41871f0d1b38b1a346ba9f54d07ce48')
build() {
cd "${srcdir}/${_pkgname}-${pkgver}"
./configure --prefix=/usr
make all
}
package() {
cd "${srcdir}/${_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:
|