install openra to /usr/lib now that we ship native libraries
This commit is contained in:
committed by
ScottNZ
parent
1d60b86b9b
commit
2062a1bf9b
4
Makefile
4
Makefile
@@ -48,8 +48,10 @@ prefix ?= /usr/local
|
|||||||
datarootdir ?= $(prefix)/share
|
datarootdir ?= $(prefix)/share
|
||||||
datadir ?= $(datarootdir)
|
datadir ?= $(datarootdir)
|
||||||
bindir ?= $(prefix)/bin
|
bindir ?= $(prefix)/bin
|
||||||
|
libexecdir ?= $(prefix)/lib
|
||||||
BIN_INSTALL_DIR = $(DESTDIR)$(bindir)
|
BIN_INSTALL_DIR = $(DESTDIR)$(bindir)
|
||||||
DATA_INSTALL_DIR = $(DESTDIR)$(datadir)/openra
|
# TODO: separate data and binaries properly
|
||||||
|
DATA_INSTALL_DIR = $(DESTDIR)$(libexecdir)/openra
|
||||||
|
|
||||||
# install tools
|
# install tools
|
||||||
RM = rm
|
RM = rm
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ cd ../..
|
|||||||
make install-all prefix="/usr" DESTDIR="$PWD/packaging/linux/$ROOTDIR"
|
make install-all prefix="/usr" DESTDIR="$PWD/packaging/linux/$ROOTDIR"
|
||||||
|
|
||||||
# Launch scripts (executed by Desura)
|
# Launch scripts (executed by Desura)
|
||||||
cp *.sh "$PWD/packaging/linux/$ROOTDIR/usr/share/openra/" || exit 3
|
cp *.sh "$PWD/packaging/linux/$ROOTDIR/usr/lib/openra/" || exit 3
|
||||||
|
|
||||||
# Icons and .desktop files
|
# Icons and .desktop files
|
||||||
make install-shortcuts prefix="/usr" DESTDIR="$PWD/packaging/linux/$ROOTDIR"
|
make install-shortcuts prefix="/usr" DESTDIR="$PWD/packaging/linux/$ROOTDIR"
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ sed -i "s/{VERSION_FIELD}/$PKGVERSION/" openra.spec
|
|||||||
rootdir=`readlink -f $2`
|
rootdir=`readlink -f $2`
|
||||||
sed -i "s|{ROOT_DIR}|$rootdir|" openra.spec
|
sed -i "s|{ROOT_DIR}|$rootdir|" openra.spec
|
||||||
|
|
||||||
for x in `find $rootdir/usr/share/openra -type d`
|
for x in `find $rootdir/usr/lib/openra -type d`
|
||||||
do
|
do
|
||||||
y="${x#$rootdir}"
|
y="${x#$rootdir}"
|
||||||
sed -i "/%files/ a ${y}" openra.spec
|
sed -i "/%files/ a ${y}" openra.spec
|
||||||
|
|||||||
Reference in New Issue
Block a user