[arch-commits] Commit in deepin-voice-note/repos/community-x86_64 (PKGBUILD PKGBUILD)

Felix Yan felixonmars at archlinux.org
Tue Jul 14 10:46:51 UTC 2020


    Date: Tuesday, July 14, 2020 @ 10:46:51
  Author: felixonmars
Revision: 663681

archrelease: copy trunk to community-x86_64

Added:
  deepin-voice-note/repos/community-x86_64/PKGBUILD
    (from rev 663680, deepin-voice-note/trunk/PKGBUILD)
Deleted:
  deepin-voice-note/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |   69 +++++++++++++++++++++++++++++++------------------------------
 1 file changed, 36 insertions(+), 33 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-07-14 10:46:35 UTC (rev 663680)
+++ PKGBUILD	2020-07-14 10:46:51 UTC (rev 663681)
@@ -1,33 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgname=deepin-voice-note
-pkgver=5.7.8
-pkgrel=1
-pkgdesc='A lightweight memo tool to make text notes and voice recordings'
-arch=('x86_64')
-url="https://github.com/linuxdeepin/deepin-voice-note"
-license=('GPL3')
-depends=('deepin-qt5integration')
-makedepends=('qt5-tools')
-groups=('deepin-extra')
-source=("https://github.com/linuxdeepin/deepin-voice-note/archive/$pkgver/$pkgname-$pkgver.tar.gz")
-sha512sums=('09987530260331313f4104b1c4e7d7d042dc52977e444c740c8ab221d04682363df7298db71fd64207ad64d7f4e479234e4ae2c1f030a156a8ba0dda71922dc9')
-
-prepare() {
-  cd deepin-voice-note-$pkgver
-  sed -i '1i#include <QMouseEvent>' src/views/leftfolderlist.cpp
-  sed -i '1i#include <QObject>' src/Controllers/foldercontroller.cpp
-  sed -i '1i#include <QPainterPath>' src/views/waveform.cpp src/views/waveformreplay.cpp
-  sed -i '228s|audio/mpeg|audio/mpeg, mpegversion=(int)1, layer=(int)3|' src/views/recordPage.cpp
-}
-
-build() {
-  cd deepin-voice-note-$pkgver
-  qmake-qt5 PREFIX=/usr
-  make
-}
-
-package() {
-  cd deepin-voice-note-$pkgver
-  make INSTALL_ROOT="$pkgdir" install
-}

Copied: deepin-voice-note/repos/community-x86_64/PKGBUILD (from rev 663680, deepin-voice-note/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-07-14 10:46:51 UTC (rev 663681)
@@ -0,0 +1,36 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=deepin-voice-note
+pkgver=5.7.9
+pkgrel=1
+pkgdesc='A lightweight memo tool to make text notes and voice recordings'
+arch=('x86_64')
+url="https://github.com/linuxdeepin/deepin-voice-note"
+license=('GPL3')
+replaces=('deepin-voice-recorder')
+depends=('deepin-qt5integration')
+makedepends=('qt5-tools')
+groups=('deepin-extra')
+source=("https://github.com/linuxdeepin/deepin-voice-note/archive/$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('706cf34bdfdca667aa6e381403a044ef587acf925e095aa5ec5bf59d5632487391af32c33083fd3b4a87cfbbf7cf32931a566095ade8c6812d68ced2b5756d10')
+
+prepare() {
+  cd deepin-voice-note-$pkgver
+  # Upstream likes to refactor code while ignoring pull requests
+  sed -i '1i#include <QPainterPath>' src/views/middleviewdelegate.cpp src/views/leftviewdelegate.cpp
+  # Utterly broken code that treats all audio/mpeg as mp3 and they refused to fix.
+  # They really need to learn what the f**k is a codec and a container and they are *not* the same.
+  sed -e 's|codec.startsWith(m_defaultAudioFmt)|codec.startsWith("audio/mpeg, mpegversion=(int)1, layer=(int)3")|' \
+      -i src/common/vnoteaudiomanager.cpp
+}
+
+build() {
+  cd deepin-voice-note-$pkgver
+  qmake-qt5 PREFIX=/usr
+  make
+}
+
+package() {
+  cd deepin-voice-note-$pkgver
+  make INSTALL_ROOT="$pkgdir" install
+}



More information about the arch-commits mailing list