LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 611|回复: 1

支持gbk标签的exaile 附[PKGBUILD]

[复制链接]
发表于 2009-4-14 01:07:50 | 显示全部楼层 |阅读模式
exaile有一个致命的缺点:没有考虑国内GBK标签的MP3。虽说我们可以用mutagen之类的工具修改,但是回到windows又变成乱码了。有点得不偿失。有没有更好的办法呢?答案是肯定的,ubuntu-cn的huangjiahua童鞋给出patch.然后再利用我们archlinux的abs,呵呵,轻松搞定!
注意:已经安装过exaile的事先请$rm -rf .exaile




[php]
# $Id: PKGBUILD,v 1.14 2008/11/28 11:53:48 allan Exp $
# Maintainer: Roman Kyrylych <Roman.Kyrylych@gmail.com>
# Contributor: Benjamin Wild <benwild@gmx.de>

pkgname=exaile
pkgver=0.2.14
pkgrel=2
pkgdesc="A media player aiming to be similar to KDE's AmaroK, but for GTK+"
arch=('i686' 'x86_64')
url="http://www.exaile.org"
license=('GPL')
depends=('pygtk>=2.10' 'python-pysqlite' 'gstreamer0.10-python' \
         'gstreamer0.10-base-plugins' 'gstreamer0.10-good-plugins' \
         'dbus-python' 'mutagen')
makedepends=('pkgconfig')
optdepends=('cddb-py: for CD playback'
            'libgpod: for iPod suport'
            'gstreamer0.10-ugly-plugins: for mp3 support'
            'gstreamer0.10-ffmpeg: for wma support'
            'gstreamer0.10-bad-plugins: for equalizer support'
            'python-notify: for libnotify plugin'
            'xulrunner: for extended information tabs'
            'gnome-python-extras: for extended information tabs')
source=(http://www.exaile.org/files/${pkgname}\_${pkgver}.tar.gz
        exaile-launcher.patch
    legacy-encodings-support.diff)
md5sums=('5e569c084134abe13d651f804812b6fa'
         '882403c11d14e131fc41e0ac20d4f844'
     'dafd9f5927211718ee02aa720d98db02')

build() {
  cd ${srcdir}/${pkgname}-${pkgver}
  patch -Np1 -i ${srcdir}/exaile-launcher.patch
  patch -Np1 -i ${srcdir}/legacy-encodings-support.diff
  make || return 1
  make PREFIX=/usr DESTDIR=${pkgdir} install

  # fix for clicking files with spaces in names from nautilus
  sed -i "s#%u#%f#" ${pkgdir}/usr/share/applications/exaile.desktop
}
[/php]




legacy-encodings-support.diff

原文链接
 楼主| 发表于 2009-4-14 01:10:11 | 显示全部楼层
哈哈,这下exaile整个无敌了。夜色已深,给自己顶下,睡觉去了。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表