This project will discover and provide orchestration and instruction to the various servers in the AniNIX ecosystem. It's named after the Star Wars Imperial Intelligence organization that oversaw II's various divisions.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

47 lines
973 B

  1. depends=('bash>=4.4', 'ansible>=2.9')
  2. makedepends=('make>=4.2')
  3. checkdepends=()
  4. optdepends=()
  5. pkgname="$(git config remote.origin.url | rev | cut -f 1 -d '/' | rev | sed 's/.git$//')"
  6. pkgver="$(git describe --tag --abbrev=0)"."$(git rev-parse --short HEAD)"
  7. pkgrel=1
  8. pkgrel() {
  9. echo $(( `git log "$(git describe --tag --abbrev=0)"..HEAD | grep -c commit` + 1 ))
  10. }
  11. epoch="$(git log | grep -c commit)"
  12. pkgdesc="$(head -n 1 README.md)"
  13. arch=("x86_64")
  14. url="$(git config remote.origin.url | sed 's/.git$//')"
  15. license=('custom')
  16. groups=()
  17. provides=("${pkgname}")
  18. conflicts=()
  19. replaces=("${pkgname,,}", "aninix-${pkgname,,}")
  20. backup=()
  21. options=()
  22. install=
  23. changelog=
  24. source=()
  25. noextract=()
  26. md5sums=()
  27. validpgpkeys=()
  28. prepare() {
  29. git pull
  30. }
  31. build() {
  32. make -C ..
  33. }
  34. check() {
  35. chmod -R u+r ../pkg
  36. make -C .. test
  37. }
  38. package() {
  39. export pkgdir="${pkgdir}"
  40. make -C .. install
  41. install -D -m644 ../LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
  42. }