blob: 7adfff45fc2c60aaa215c8f941613e7f8416e928 (
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
52
53
54
55
56
57
58
59
60
61
62
|
# This is an example PKGBUILD file. Use this as a start to creating your own,
# and remove these comments. For more information, see 'man PKGBUILD'.
# NOTE: Please fill out the license field for your package! If it is unknown,
# then please put 'unknown'.
# See http://wiki.archlinux.org/index.php/VCS_PKGBUILD_Guidelines
# for more information on packaging from SVN sources.
# Maintainer: craven@gmx.net
pkgname=gnu-apl-svn
pkgver=917
pkgrel=1
pkgdesc="An (almost) complete implementation of ISO standard 13751"
arch=(i686 x86_64)
url="https://www.gnu.org/software/apl/"
license=('GPL3')
groups=()
depends=('ncurses' 'postgresql-libs' 'gcc-libs' 'sqlite')
makedepends=('subversion')
provides=()
conflicts=(gnu-apl)
replaces=()
backup=()
options=()
install=
source=()
noextract=()
#generate with 'makepkg -g'
_svntrunk=http://svn.savannah.gnu.org/svn/apl/trunk
_svnmod=apl
build() {
cd "$srcdir"
msg "Connecting to SVN server...."
if [[ -d "$_svnmod/.svn" ]]; then
(cd "$_svnmod" && svn up -r "$pkgver")
else
svn co "$_svntrunk" --config-dir ./ -r "$pkgver" "$_svnmod"
fi
msg "SVN checkout done or server timeout"
msg "Starting build..."
rm -rf "$srcdir/$_svnmod-build"
svn export "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
cd "$srcdir/$_svnmod-build"
#
# BUILD HERE
#
CFLAGS='-std=gnu99' ./configure --prefix=/usr
make PREFIX=/usr -j1
}
package() {
cd "$srcdir/$_svnmod-build"
make PREFIX=/usr DESTDIR="$pkgdir/" install
}
# vim:set ts=2 sw=2 et:
|