summaryrefslogtreecommitdiff
path: root/beryl-plugins-vidcap
diff options
context:
space:
mode:
authorwereHamster <wereHamster@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2007-02-01 16:18:42 +0000
committerwereHamster <wereHamster@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2007-02-01 16:18:42 +0000
commit48262da331bb977a946318326e84a8b4fbe912b4 (patch)
treec1a16a5e70e49c903898b47c315fae01fdb671ca /beryl-plugins-vidcap
parente282f920b123dbde7d88aa09bd7bdbfe55e21255 (diff)
downloadmarex-dev-48262da331bb977a946318326e84a8b4fbe912b4.tar.gz
marex-dev-48262da331bb977a946318326e84a8b4fbe912b4.tar.bz2
beryl-plugins-vidcap: use pkg-config to get the prefix.
git-svn-id: file:///beryl/trunk@3547 d7aaf104-2d23-0410-ae22-9d23157bf5a3
Diffstat (limited to 'beryl-plugins-vidcap')
-rwxr-xr-xberyl-plugins-vidcap/build.sh6
1 files changed, 1 insertions, 5 deletions
diff --git a/beryl-plugins-vidcap/build.sh b/beryl-plugins-vidcap/build.sh
index a1d8589..0ddbb14 100755
--- a/beryl-plugins-vidcap/build.sh
+++ b/beryl-plugins-vidcap/build.sh
@@ -22,11 +22,7 @@ if [ "${1}" = "local" ]; then
cp .libs/libcapture.so ${HOME}/.beryl/plugins
cp seom.png ${HOME}/.beryl/images
elif [ "${1}" = "system" ]; then
- BIN="$(which beryl)"
- echo -n "Extracting PREFIX from ${BIN} ... "
- PREFIX=$(strings ${BIN} | grep -E "/usr.*/lib/beryl")
- PREFIX=${PREFIX%%/lib/beryl}
- echo "${PREFIX}"
+ PREFIX=$(pkg-config --variable=prefix beryl)
echo "Installing into ${PREFIX}/lib/beryl"
sudo make install PREFIX="${PREFIX}" &>/dev/null