Advertisement
hermes14

Arch PKGBUILD for easytag-git (20120613)

Jun 13th, 2012
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.23 KB | None | 0 0
  1. # Maintainer:  Bernd Helm <AUR user raw>
  2. # Contributor: Giancarlo Bianchi <AUR user hermes14>
  3.  
  4. pkgname=easytag-git
  5. pkgver=20120613
  6. pkgrel=1
  7. pkgdesc="Utility for viewing, editing and writing ID3 tags of your MP3 files - git version with patches"
  8. arch=('i686' 'x86_64')
  9. license=('GPL')
  10. url="https://github.com/stsquad/easytag"
  11. depends=('id3lib' 'libid3tag' 'gtk2' 'libvorbis' 'flac' 'libmp4v2' 'speex' 'wavpack' 'desktop-file-utils')
  12. makedepends=('git')
  13. conflicts=('easytag')
  14. install=easytag.install
  15.  
  16. _gitroot="git://easytag.git.sourceforge.net/gitroot/easytag/easytag"
  17. _gitname="easytag"
  18.  
  19.  
  20. build() {
  21.  
  22.   cd ${srcdir}
  23.   msg "Connecting to GIT server...."
  24.  
  25.   if [ -d "${srcdir}/${_gitname}" ] ; then
  26.     ( cd ${_gitname} && git pull --rebase )
  27.   else
  28.     git clone ${_gitroot}
  29.   fi
  30.  
  31.   rm -rf ${_gitname}-build
  32.   git clone ${_gitname} ${_gitname}-build
  33.   cd ${_gitname}-build
  34.  
  35.   msg "GIT checkout done or server timeout"
  36.  
  37.   msg "Starting make..."
  38.  
  39.   ./autogen.sh
  40.   ./configure --prefix=/usr
  41.   make
  42. }
  43.  
  44. package() {
  45.   cd ${srcdir}/${_gitname}-build
  46.   make DESTDIR=${pkgdir} install
  47.  
  48.   # Remove directory mimetype
  49.   sed '/^MimeType=/ s@inode/directory;@@' \
  50.     -i ${pkgdir}/usr/share/applications/easytag.desktop
  51. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement