PKGBUILD 796 B

1234567891011121314151617181920212223242526272829303132333435
  1. # Maintainer: Marek Küthe <m.k@mk16.de>
  2. _pkgname=ubgpsuite
  3. pkgname=${_pkgname}-git
  4. pkgver=r74.25707a2
  5. pkgrel=1
  6. pkgdesc="Micro BGP Suite and Utility library"
  7. url="https://codeberg.org/1414codeforge/ubgpsuite"
  8. license=("GPL-3.0-or-later" "LGPL-3.0-or-later")
  9. arch=(i686 x86_64 armv7h aarch64 riscv32 riscv64)
  10. depends=('bzip2' 'xz')
  11. makedepends=('git' 'meson' 'ninja')
  12. source=("git+https://codeberg.org/1414codeforge/ubgpsuite")
  13. sha256sums=('SKIP')
  14. pkgver() {
  15. cd ${srcdir}/${_pkgname}
  16. echo "r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
  17. }
  18. prepare() {
  19. cd ${srcdir}/${_pkgname}
  20. meson setup build --buildtype=release --prefix=/usr
  21. }
  22. build() {
  23. cd ${srcdir}/${_pkgname}/build/
  24. ninja
  25. }
  26. package() {
  27. cd ${srcdir}/${_pkgname}/
  28. DESTDIR="${pkgdir}" meson install -C build
  29. }