Add support for DESTDIR variable in make install.

This commit is contained in:
Andrius Štikonas 2021-04-02 12:24:40 +01:00
parent dcec416d0f
commit 70d1fc4163
60 changed files with 147 additions and 163 deletions

View file

@ -13,7 +13,7 @@ src_compile() {
}
src_install() {
install autoconf ${PREFIX}/bin/autoconf-2.52
mkdir -p ${PREFIX}/share/autoconf-2.52
cp -r *.m4* ${PREFIX}/share/autoconf-2.52/
install autoconf ${DESTDIR}${PREFIX}/bin/autoconf-2.52
mkdir -p ${DESTDIR}${PREFIX}/share/autoconf-2.52
cp -r *.m4* ${DESTDIR}${PREFIX}/share/autoconf-2.52/
}

View file

@ -19,7 +19,7 @@ src_configure() {
}
src_compile() {
make MAKEINFO=true
make MAKEINFO=true DESTDIR="${DESTDIR}"
}
src_install() {
@ -27,5 +27,5 @@ src_install() {
rm ${PREFIX}/bin/autoconf-2.52
rm -rf ${PREFIX}/share/autoconf-2.52
make install MAKEINFO=true
make install MAKEINFO=true DESTDIR="${DESTDIR}"
}