Java bookstore project (Spring Boot + Thymeleaf + JPA + REST)
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.

53 lines
1.1 KiB

  1. # Maintainer: Pekka Helenius <fincer89@hotmail.com>
  2. pkgname=bookstore-project
  3. packagetype=war
  4. packagename=Bookstore.${packagetype}
  5. tomcat_ver=9
  6. java_ver=8
  7. pkgver=7.2af07c8
  8. pkgrel=1
  9. pkgdesc='Bookstore Java server example project'
  10. arch=('any')
  11. url='https://github.com/Fincer/java-bookstore'
  12. license=('GPL')
  13. depends=(
  14. "tomcat${tomcat_ver}"
  15. "mariadb"
  16. "java-runtime>=${java_ver}"
  17. )
  18. makedepends=('maven' 'git')
  19. source=(
  20. "$pkgname::git+${url}.git"
  21. "bookstore-tomcat.xml"
  22. )
  23. sha256sums=('SKIP'
  24. '6a115dc9132cd04f5b740575612d6aeb744db8620e8249776dad8222ca917cbf')
  25. pkgver() {
  26. cd $pkgname
  27. if [[ $(git describe) ]]; then
  28. git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
  29. else
  30. echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
  31. fi
  32. }
  33. #prepare() {
  34. # cd $pkgname
  35. #}
  36. build() {
  37. cd $pkgname/bookstore
  38. mvn package
  39. }
  40. package() {
  41. cd $pkgname/bookstore
  42. install -Dm0644 -t ${pkgdir}/opt/bookstore/ target/${packagename}
  43. install -Dm0644 ../../bookstore-tomcat.xml ${pkgdir}/etc/tomcat${tomcat_ver}/Catalina/localhost/bookstore.xml
  44. }