[arch-commits] Commit in beets/trunk (PKGBUILD)

Maxime Gauduin alucryd at archlinux.org
Wed Jan 13 14:41:57 UTC 2021


    Date: Wednesday, January 13, 2021 @ 14:41:57
  Author: alucryd
Revision: 820467

upgpkg: beets 1.4.9.r1031.cbc045f1c-1

Modified:
  beets/trunk/PKGBUILD

----------+
 PKGBUILD |   63 ++++++++++++++++++++++++++++++++++---------------------------
 1 file changed, 36 insertions(+), 27 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-01-13 14:24:44 UTC (rev 820466)
+++ PKGBUILD	2021-01-13 14:41:57 UTC (rev 820467)
@@ -2,17 +2,18 @@
 # Contributor: Adrian Sampson <adrian at radbox.org>
 
 pkgname=beets
-pkgver=1.4.9
-pkgrel=5
+pkgver=1.4.9.r1031.cbc045f1c
+pkgrel=1
 pkgdesc='Flexible music library manager and tagger'
 arch=(any)
 url=https://beets.io/
 license=(MIT)
 depends=(
+  python-confuse
   python-jellyfish
+  python-mediafile
   python-munkres
   python-musicbrainzngs
-  python-mutagen
   python-setuptools
   python-six
   python-unidecode
@@ -20,12 +21,29 @@
 )
 makedepends=(
   git
+  python-setuptools
   python-sphinx
 )
+checkdepends=(
+  bash-completion
+  imagemagick
+  python-discogs-client
+  python-flask
+  python-mock
+  python-mpd2
+  python-nose
+  python-nose-exclude
+  python-pylast
+  python-reflink
+  python-requests-oauthlib
+  python-responses
+  python-xdg
+)
 optdepends=(
   'bash-completion: Bash completion'
   'bs1770gain: ReplayGain plugin'
-  'ffmpeg: Convert plugin'
+  'chromaprint: Chromaprint/Acoustid plugin'
+  'ffmpeg: Convert, ReplayGain plugins'
   'gst-plugins-bad: Chromaprint/Acoustid, BPD, ReplayGain plugins'
   'gst-plugins-good: Chromaprint/Acoustid, BPD, ReplayGain plugins'
   'gst-plugins-ugly: Chromaprint/Acoustid, BPD, ReplayGain plugins'
@@ -41,9 +59,9 @@
   'python-requests: Chromaprint/Acoustid, BPD, FetchArt plugins'
   'python-xdg: Thumbnails plugin'
 )
-_tag=2b8a2eb96bcaf418cdfcc0cfe762a18e31cff138
+_commit=cbc045f1c8f898acd8798ff134a25557f1769525
 source=(
-  git+https://github.com/beetbox/beets.git#tag=${_tag}
+  git+https://github.com/beetbox/beets.git#commit=${_commit}
   beet
 )
 b2sums=('SKIP'
@@ -51,38 +69,29 @@
 
 pkgver() {
   cd beets
-
-  git describe --tags | sed 's/^v//'
+  git describe --tags | sed 's/^v//; s/-/.r/; s/-g/./'
 }
 
-prepare() {
+build() {
   cd beets
-
-  git show dab0c1f9abda5b17cc7488f89a6fe08be7bc56a0 --  beets/util/functemplate.py | git apply - # Python 3.8.4 compatibility
+  python setup.py build sdist
 }
 
-build() {
+check() {
   cd beets
-
-  python setup.py build sdist
+  python -m nose \
+    --exclude-test=test.test_ui.CompletionTest \
+    --exclude-test=test.test_zero.ZeroPluginTest
 }
 
 package() {
   cd beets
-
   python setup.py install --root="${pkgdir}" --optimize=1
-
-  install -dm 755 "${pkgdir}"/usr/share/bash-completion/completions/
-  install -m 644 ../beet "${pkgdir}"/usr/share/bash-completion/completions/
-  install -dm 755 "${pkgdir}"/usr/share/zsh/site-functions
-  install -m 644 extra/_beet "${pkgdir}"/usr/share/zsh/site-functions/
-
-  install -dm 755 "${pkgdir}"/usr/share/man/man{1,5}
-  install -m 644 man/beet.1 "${pkgdir}"/usr/share/man/man1/
-  install -m 644 man/beetsconfig.5 "${pkgdir}"/usr/share/man/man5/
-
-  install -dm 755 "${pkgdir}"/usr/share/licenses/beets
-  install -m 644 LICENSE "${pkgdir}"/usr/share/licenses/beets/
+  install -Dm 644 ../beet -t "${pkgdir}"/usr/share/bash-completion/completions/
+  install -Dm 644 extra/_beet -t "${pkgdir}"/usr/share/zsh/site-functions/
+  install -Dm 644 man/beet.1 -t "${pkgdir}"/usr/share/man/man1/
+  install -Dm 644 man/beetsconfig.5 -t "${pkgdir}"/usr/share/man/man5/
+  install -Dm 644 LICENSE -t "${pkgdir}"/usr/share/licenses/beets/
 }
 
 # vim: ts=2 sw=2 et:



More information about the arch-commits mailing list