blob: 8038a6b3fd1face023a116432fe872bf1de3dcbd (
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
|
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>
pkgname=tinyxml-git
pkgver=r1.g94b1760
pkgrel=3
pkgdesc="A simple, small, efficient, C++ XML parser"
arch=('i686' 'x86_64')
url="http://www.grinninglizard.com/tinyxml/"
license=('zlib')
depends=('gcc-libs')
makedepends=('git' 'setconf')
provides=("tinyxml=$pkgver")
conflicts=('tinyxml')
source=("git+https://git.code.sf.net/p/tinyxml/git"
"tinyxml.pc::https://gitlab.archlinux.org/archlinux/packaging/packages/tinyxml/-/raw/main/tinyxml.pc")
sha256sums=('SKIP'
'SKIP')
prepare() {
cd "git"
setconf Makefile TINYXML_USE_STL YES
setconf Makefile RELEASE_CFLAGS "$CXXFLAGS -fPIC"
}
pkgver() {
cd "git"
_rev=$(git rev-list --count --all)
_hash=$(git rev-parse --short HEAD)
printf "r%s.g%s" "$_rev" "$_hash"
}
build() {
cd "git"
make
g++ "$CXXFLAGS" -fPIC -shared -o "libtinyxml.so" \
-Wl,-soname,"libtinyxml.so" $(ls *.o | grep -v xmltest)
}
check() {
cd "git"
./xmltest
}
package() {
cd "git"
install -dm 755 "$pkgdir/usr"/{lib,include}
install -Dm 755 "libtinyxml.so" -t "$pkgdir/usr/lib"
install -Dm 644 {tinyxml,tinystr}.h -t "$pkgdir/usr/include"
install -Dm644 "$srcdir/tinyxml.pc" -t "$pkgdir/usr/lib/pkgconfig"
install -Dm644 "readme.txt" "$pkgdir/usr/share/licenses/tinyxml/LICENSE"
}
|