firebird: move to /usr/share/firebird

This commit is contained in:
Jürgen Buchmüller 2016-05-08 01:10:35 +02:00
parent 4ccaa7f1d4
commit ea6ae0cb15
1 changed files with 9 additions and 9 deletions

View File

@ -1,11 +1,11 @@
# Template file for 'firebird' # Template file for 'firebird'
pkgname=firebird pkgname=firebird
version=2.5.5.26952 version=2.5.5.26952
revision=3 revision=4
_build=0 _build=0
wrksrc="${pkgname^}-${version}-${_build}" wrksrc="${pkgname^}-${version}-${_build}"
build_style=gnu-configure build_style=gnu-configure
configure_args="--prefix=/opt/firebird --with-system-icu --with-system-editline" configure_args="--prefix=/usr/share/firebird --with-system-icu --with-system-editline"
nocross=yes nocross=yes
hostmakedepends="automake libtool pkg-config icu" hostmakedepends="automake libtool pkg-config icu"
makedepends="boost-devel libedit-devel icu-devel ncurses-devel libatomic_ops-devel" makedepends="boost-devel libedit-devel icu-devel ncurses-devel libatomic_ops-devel"
@ -48,13 +48,13 @@ do_install() {
find gen/buildroot -type f -perm 0444 -exec chmod 0644 "{}" \; find gen/buildroot -type f -perm 0444 -exec chmod 0644 "{}" \;
find gen/buildroot -type f -perm 0555 -exec chmod 0755 "{}" \; find gen/buildroot -type f -perm 0555 -exec chmod 0755 "{}" \;
# Move some directories and files from /opt/firebird to /usr # Move some directories and files from /usr/share/firebird to /usr
mkdir -p gen/buildroot/usr/bin mkdir -p gen/buildroot/usr/bin
mkdir -p gen/buildroot/usr/include mkdir -p gen/buildroot/usr/include
mkdir -p gen/buildroot/usr/lib mkdir -p gen/buildroot/usr/lib
mv gen/buildroot/opt/firebird/bin/fb_config gen/buildroot/usr/bin/ mv gen/buildroot/usr/share/firebird/bin/fb_config gen/buildroot/usr/bin/
mv gen/buildroot/opt/firebird/include/* gen/buildroot/usr/include/ mv gen/buildroot/usr/share/firebird/include/* gen/buildroot/usr/include/
mv gen/buildroot/opt/firebird/lib/* gen/buildroot/usr/lib/ mv gen/buildroot/usr/share/firebird/lib/* gen/buildroot/usr/lib/
# Re-create shared library symlinks in /usr/lib # Re-create shared library symlinks in /usr/lib
for _lib in libfbclient libfbembed; do for _lib in libfbclient libfbembed; do
@ -72,8 +72,8 @@ do_install() {
# Modify fb_config for the /usr/include and /usr/lib paths # Modify fb_config for the /usr/include and /usr/lib paths
sed -i gen/buildroot/usr/bin/fb_config \ sed -i gen/buildroot/usr/bin/fb_config \
-e "s;/opt/firebird/include;/usr/include;g" \ -e "s;/usr/share/firebird/include;/usr/include;g" \
-e "s;/opt/firebird/lib;/usr/lib;g" -e "s;/usr/share/firebird/lib;/usr/lib;g"
cp -pR gen/buildroot/* ${DESTDIR}/ cp -pR gen/buildroot/* ${DESTDIR}/
@ -94,7 +94,7 @@ libfbclient_package() {
done done
vmove usr/lib/libgds.so.0 vmove usr/lib/libgds.so.0
vmove usr/lib/libib_util.so vmove usr/lib/libib_util.so
vmove opt/firebird/*.msg vmove usr/share/firebird/*.msg
vlicense doc/license/IDPL.txt IDPL vlicense doc/license/IDPL.txt IDPL
vlicense doc/license/README.license.usage.txt LICENSE vlicense doc/license/README.license.usage.txt LICENSE
} }