Guest User

Untitled

a guest
Feb 25th, 2016
73
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. commit 455370f32bb92cf20a79e14afc0a6bccf0d5fc50
  2. Author: Leonard König <leonard.r.koenig@googlemail.com>
  3. Date: Thu Feb 25 23:02:05 2016 +0100
  4.  
  5. make PKGBUILD adhere more to packaging standards
  6.  
  7. diff --git a/.SRCINFO b/.SRCINFO
  8. index b64f763..987976b 100644
  9. --- a/.SRCINFO
  10. +++ b/.SRCINFO
  11. @@ -1,13 +1,18 @@
  12. +# Generated by mksrcinfo v8
  13. +# Thu Feb 25 22:01:45 UTC 2016
  14. pkgbase = pulsemixer-git
  15. pkgdesc = cli and curses mixer for pulseaudio
  16. - pkgver = r35.c7817ad
  17. + pkgver = 1.1.0.r2.gf088a91
  18. pkgrel = 1
  19. + epoch = 1
  20. url = https://github.com/GeorgeFilipkin/pulsemixer
  21. arch = any
  22. license = MIT
  23. makedepends = git
  24. depends = python
  25. depends = pulseaudio
  26. + source = pulsemixer::git+https://github.com/GeorgeFilipkin/pulsemixer.git
  27. + md5sums = SKIP
  28.  
  29. pkgname = pulsemixer-git
  30.  
  31. diff --git a/.gitignore b/.gitignore
  32. new file mode 100644
  33. index 0000000..18e0a91
  34. --- /dev/null
  35. +++ b/.gitignore
  36. @@ -0,0 +1,9 @@
  37. +# stuff done by makepkg
  38. +pkg/
  39. +src/
  40. +
  41. +# built package
  42. +*.pkg*
  43. +
  44. +# cloned source
  45. +pulsemixer/
  46. diff --git a/PKGBUILD b/PKGBUILD
  47. index c8e95c8..dbacf3b 100644
  48. --- a/PKGBUILD
  49. +++ b/PKGBUILD
  50. @@ -1,42 +1,25 @@
  51. # Maintainer: Jeff Parent <jecxjo@sdf.lonestar.org>
  52. pkgname=pulsemixer-git
  53. -pkgver=r35.c7817ad
  54. +_pkgname=pulsemixer
  55. +pkgver=1.1.0.r2.gf088a91
  56. pkgrel=1
  57. +epoch=1 # one-time forced upgrade to new version
  58. pkgdesc="cli and curses mixer for pulseaudio"
  59. arch=(any)
  60. url="https://github.com/GeorgeFilipkin/pulsemixer"
  61. license=('MIT')
  62. depends=('python' 'pulseaudio')
  63. makedepends=('git')
  64. -
  65. -_gitroot=https://github.com/GeorgeFilipkin/pulsemixer.git
  66. -_gitname=pulsemixer
  67. +source=($_pkgname::git+https://github.com/GeorgeFilipkin/pulsemixer.git)
  68. +md5sums=('SKIP')
  69.  
  70. pkgver() {
  71. - cd "$_gitname"
  72. - printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  73. -}
  74. -
  75. -build() {
  76. - cd "$srcdir"
  77. - msg "Connecting to GIT server...."
  78. -
  79. - if [[ -d "$_gitname" ]]; then
  80. - cd "$_gitname" && git pull origin
  81. - msg "The local files are updated."
  82. - else
  83. - git clone "$_gitroot" "$_gitname"
  84. - fi
  85. -
  86. - msg "GIT checkout done or server timeout"
  87. - msg "Starting build..."
  88. -
  89. - rm -rf "$srcdir/$_gitname-build"
  90. - git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
  91. + cd "$_pkgname"
  92. + git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
  93. }
  94.  
  95. package() {
  96. - cd "$srcdir/$_gitname-build"
  97. + cd "$_pkgname"
  98. install -m 755 -d "$pkgdir/usr/bin"
  99. install -m 755 pulsemixer "$pkgdir/usr/bin/"
  100. }
RAW Paste Data