Package Details: fadecut-git 20180217-1

Git Clone URL: https://aur.archlinux.org/fadecut-git.git (read-only, click to copy)
Package Base: fadecut-git
Description: Toolset to rip audiostreams, cut, fade in/out and tag the resulting audiofiles (git version)
Upstream URL: https://github.com/fadecut/fadecut
Licenses: GPL3
Conflicts: fadecut
Provides: fadecut
Submitter: mitsu
Maintainer: entshuld
Last Packager: mitsu
Votes: 1
Popularity: 0.000000
First Submitted: 2013-06-29 17:05 (UTC)
Last Updated: 2018-02-17 14:29 (UTC)

Latest Comments

mitsu commented on 2021-04-24 13:19 (UTC)

Yeah it's kinda irresponsible of me to leave it at that, I rather should pass on the keys to active packagers instead.. (and who actually use the software more than once every 5 years!)

entshuld commented on 2021-04-24 01:26 (UTC) (edited on 2021-04-24 01:28 (UTC) by entshuld)

Hi, I am sending you something that I used to properly use the Makefile from the package. I already sent the modifications upstream, but I don't know if they will take them. I tried to send you this over e-mail, but your (M$oft?) server did not like it:

217.70.178.1 does not like recipient.
Remote host said: 550 5.1.1 <archlinux --at-- suumitsu dododot eu>: Recipient address rejected: User unknown in virtual mailbox table
Giving up on 217.70.178.1.

diff --git a/Makefile b/Makefile
index 46c5abb..3e188cb 100644
--- a/Makefile
+++ b/Makefile
@@ -25,11 +25,10 @@ MAN1DIR     = $(PREFIX)/share/man/man1
 TESTINGDIR = testing
 HOME_FADECUT   = ${HOME}/.fadecut

-all:
-   @echo Building manpage from fadecut.1.md
-   pandoc -s -t man man/fadecut.1.md -o man/fadecut.1
+.PHONY:
+all: install-bin install-man install-doc

-test:
+test: install-bin
    for Recipe in $(TESTINGDIR)/recipes/*.sh; do \
      echo -n "Testing $$Recipe: "; \
      ./$$Recipe `pwd` || exit $?; \
@@ -46,13 +45,15 @@ clean:
      rm man/fadecut.1; \
    fi

-install-bin:
+install-bin: $(PN)
    @echo 'installing main script...'
-   install -Dm755 $(PN) "$(DESTDIR)$(BINDIR)/$(PN)"
+   install -Dm755 $< "$(DESTDIR)$(BINDIR)/$(PN)"

-install-man:
+install-man: man/$(PN).1.md
+   @echo Building manpage from fadecut.1.md
+   pandoc -s -t man $< -o $(subst .md,,$<)
    @echo 'installing manpages...'
-   install -Dm644 man/$(PN).1 "$(DESTDIR)$(MAN1DIR)/$(PN).1"
+   install -Dm644 $< "$(DESTDIR)$(MAN1DIR)/$(PN).1"

 install-doc:
    @echo 'installing documentation...'
@@ -61,4 +62,5 @@ install-doc:
    gzip -n9 "$(DESTDIR)$(DOCDIR)/README.md"
    gzip -n9 "$(DESTDIR)$(DOCDIR)/NOTES.md"

-install: all install-bin install-man install-doc
+.PHONY:
+install: all
diff --git a/PKGBUILD b/PKGBUILD
index 46c5abb..3e188cb 100644
modified   PKGBUILD
@@ -5,32 +5,25 @@ pkgver=20180217
 pkgrel=1
 pkgdesc="Toolset to rip audiostreams, cut, fade in/out and tag the resulting audiofiles (git version)"
 arch=("i686" "x86_64")
-url="https://github.com/fadecut/fadecut"
+url="https://gitlab.com/${_gitname}/${_gitname}"
 license=('GPL3')
-depends=("id3v2" "sox" "streamripper" "vorbis-tools" "opus-tools" "git")
+depends=("id3v2" "sox" "streamripper" "vorbis-tools" "opus-tools" "mediainfo")
+makedepends=("git")
 optdepends=("lame")
 provides=("fadecut")
 conflicts=("fadecut")
-source=('git+https://github.com/fadecut/fadecut.git')
-sha256sums=('SKIP')
+source=("git+${url}.git"
+       'Makefile.diff.gz')
+sha512sums=('SKIP'
+           '0b651945cddee9e5f31dc377ca9117a1fb99b6c812cadd045f469024c29069ed902e2da3809858cef04e603658e38ca469ba11f2ecb72a81e9ae6309dbe41461')

-package() {
+prepare () {
+  patch -d "${srcdir}/${_gitname}" -i "${srcdir}/Makefile.diff"
+}

-  msg "Connecting to GIT server...."
-  
-  if [[ -d $_gitname ]]; then
-    cd $_gitname || return 1
-    git pull || return 1
-  else
-    git clone $_gitroot || return 1
-  fi
-  msg " checkout done."
-  
-  cd $srcdir/$_gitname || return 1
-    
-  install -Dm755 fadecut "${pkgdir}/usr/bin/fadecut"
-  install -Dm755 fcstats "${pkgdir}/usr/bin/fcstats"
-  install -D "man/fadecut.1.md" "${pkgdir}/usr/share/man/man1/fadecut.1"
+package() {
+  cd "${srcdir}"/${_gitname}
+  DESTDIR="${pkgdir}" make install
  }

 # vim:set ts=2 sw=2 et: