forked from cppfw/svgren
-
Notifications
You must be signed in to change notification settings - Fork 0
/
PKGBUILD.in
70 lines (60 loc) · 1.26 KB
/
PKGBUILD.in
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
63
64
65
66
67
68
69
70
# Maintainer: Ivan Gagis <igagis@gmail.com>
if [ "$MSYSTEM" == "MSYS" ]; then
pkgPrefix=
dirPrefix=/usr
arch=('x86_64' 'i686')
elif [ "$MSYSTEM" == "MINGW32" ]; then
pkgPrefix=mingw-w64-i686-
dirPrefix=/mingw32
arch=('any')
elif [ "$MSYSTEM" == "MINGW64" ]; then
pkgPrefix=mingw-w64-x86_64-
dirPrefix=/mingw64
arch=('any')
else
echo "ERROR: unknown MSYS shell: $MSYSTEM"
exit 1
fi
packageName=svgren
pkgname="${pkgPrefix}${packageName}"
pkgver=$(version)
pkgrel=1
epoch=
pkgdesc="SVG rendering library in C++"
#arch=('any') #defined above
url="http://github.com/cppfw/${packageName}"
license=('MIT')
groups=()
depends=("${pkgPrefix}utki" "${pkgPrefix}svgdom" "${pkgPrefix}agg")
makedepends=('myci' 'prorab' 'prorab-extra' 'doxygen' "${pkgPrefix}r4" "${pkgPrefix}clargs" "${pkgPrefix}libpng" "${pkgPrefix}tst")
checkdepends=('myci')
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=() # Do not download any sources
noextract=()
md5sums=()
validpgpkeys=()
rootDir=$(pwd)/.. # project root directory
prepare() {
cd "$rootDir"
}
build() {
cd "$rootDir"
make
}
check() {
cd "$rootDir"
if [ "$MSYSTEM" == "MINGW64" ]; then
make test
fi
}
package() {
cd "$rootDir"
make DESTDIR="$pkgdir" PREFIX="$dirPrefix" install
}