tinyxml: use sourcepkg var and switch -devel to arch (issue #17 from xbps-src).

This commit is contained in:
Juan RP 2013-04-06 12:15:41 +02:00
parent 936cf4ddc9
commit 977d925648
2 changed files with 7 additions and 8 deletions

View file

@ -1,7 +1,7 @@
# Template file for 'tinyxml' # Template file for 'tinyxml'
pkgname=tinyxml pkgname=tinyxml
version=2.6.2 version=2.6.2
revision=2 revision=3
subpackages="${pkgname}-devel" subpackages="${pkgname}-devel"
short_desc="A simple, small, C++ XML parser that can be easily integrated into other programs" short_desc="A simple, small, C++ XML parser that can be easily integrated into other programs"
maintainer="Juan RP <xtraeme@gmail.com>" maintainer="Juan RP <xtraeme@gmail.com>"
@ -19,17 +19,17 @@ do_build() {
-e "s|^RELEASE_CFLAGS.*|& ${CXXFLAGS} -fPIC|" Makefile -e "s|^RELEASE_CFLAGS.*|& ${CXXFLAGS} -fPIC|" Makefile
make ${makejobs} make ${makejobs}
g++ -fPIC ${CXXFLAGS} -shared -o lib${pkgname}.so.0.${version} \ g++ -fPIC ${CXXFLAGS} -shared -o lib${sourcepkg}.so.0.${version} \
-Wl,-soname,lib${pkgname}.so.0 $(ls *.o | grep -v xmltest) -Wl,-soname,lib${sourcepkg}.so.0 $(ls *.o | grep -v xmltest)
} }
do_install() { do_install() {
install -dm 0755 ${DESTDIR}/usr/{lib,include} install -dm 0755 ${DESTDIR}/usr/{lib,include}
install -m0755 lib${pkgname}.so.0.${version} ${DESTDIR}/usr/lib install -m0755 lib${sourcepkg}.so.0.${version} ${DESTDIR}/usr/lib
install -m0644 ${pkgname}.h tinystr.h ${DESTDIR}/usr/include install -m0644 ${sourcepkg}.h tinystr.h ${DESTDIR}/usr/include
(cd ${DESTDIR}/usr/lib (cd ${DESTDIR}/usr/lib
ln -s lib${pkgname}.so.0.${version} lib${pkgname}.so.0 ln -s lib${sourcepkg}.so.0.${version} lib${sourcepkg}.so.0
ln -s lib${pkgname}.so.0.${version} lib${pkgname}.so ln -s lib${sourcepkg}.so.0.${version} lib${sourcepkg}.so
) )
} }

View file

@ -2,7 +2,6 @@
# #
depends="${sourcepkg}>=${version}" depends="${sourcepkg}>=${version}"
short_desc="${short_desc} -- development files" short_desc="${short_desc} -- development files"
noarch=yes
do_install() { do_install() {
vmove usr/include usr vmove usr/include usr