Skip to content

Instantly share code, notes, and snippets.

@dhilst
Last active November 25, 2016 20:09
Show Gist options
  • Save dhilst/3aa228db9be89ff8361878b49353fdd6 to your computer and use it in GitHub Desktop.
Save dhilst/3aa228db9be89ff8361878b49353fdd6 to your computer and use it in GitHub Desktop.
# Copyright (C) 2016 Daniel Hilst SellI <[email protected]>
# Released under the Apache 2 license
DESCRIPTION = "Java depency manager and build tool"
HOMEPAGE = "http://maven.apache.org"
LICENSE = "Apache2"
SECTION = "devel/java"
DEPENDS = ""
_pkg_prefix = "apache-maven-${PV}"
_pkg_suffix = "-bin.tar.gz"
SRC_URI = "http://mirror.nbtelecom.com.br/apache/maven/maven-3/3.3.9/binaries/${_pkg_prefix}${_pkg_suffix}"
SRC_URI[md5sum] = "516923b3955b6035ba6b0a5b031fbd8b"
LIC_FILES_CHKSUM="file://${WORKDIR}/${_pkg_prefix}/LICENSE;md5=86870d6aee2ee3520c12fc36ebe676cd"
FILES_${PN} += "/opt/${_pkg_prefix}/* /usr/bin/*"
do_install() {
if [ -n "${base_prefix}" ]; then
install -d "${base_prefix}/opt"
install -d "${bindir}"
cp -a "${WORKDIR}/${_pkg_prefix}" "${base_prefix}/opt"
ln -sf "../../opt/${_pkg_prefix}/bin/mvn" "${bindir}/mvn"
else
install -d "${D}/opt"
install -d "${D}${bindir}"
cp -a "${WORKDIR}/${_pkg_prefix}" "${D}/opt"
ln -sf "../../opt/${_pkg_prefix}/bin/mvn" "${D}${bindir}/mvn"
fi
}
BBCLASSEXTEND = "native"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment