logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://anongit.hacktivis.me/git/overlay.git/

usign-9999.ebuild (913B)


  1. # Copyright 2025 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=8
  4. inherit cmake
  5. DESCRIPTION="Tiny signify replacement"
  6. HOMEPAGE="https://git.openwrt.org/?p=project/usign.git"
  7. if [[ "${PV}" = *9999* ]]
  8. then
  9. inherit git-r3
  10. EGIT_REPO_URI="https://git.openwrt.org/?p=project/usign.git"
  11. else
  12. EGIT_COMMIT="f1f65026a94137c91b5466b149ef3ea3f20091e9"
  13. # 403 Forbidden
  14. #SRC_URI="https://git.openwrt.org/?p=project/usign.git;a=snapshot;h=${EGIT_COMMIT};sf=tgz -> ${PN}-${EGIT_COMMIT}.tar.gz"
  15. SRC_URI="https://github.com/openwrt/usign/archive/${EGIT_COMMIT}.tar.gz -> ${PN}-${EGIT_COMMIT}.tar.gz"
  16. S="${WORKDIR}/${PN}-${EGIT_COMMIT}"
  17. KEYWORDS="~amd64 ~arm64 ~arm"
  18. fi
  19. LICENSE="public-domain ISC"
  20. SLOT="0"
  21. IUSE=""
  22. src_prepare() {
  23. cmake_src_prepare
  24. sed -i -e '/ADD_DEFINITIONS/s;-O2;;' CMakeLists.txt || die "Failed removing -O2 flag"
  25. }