diff options
author | Frederic Bezies | 2015-06-21 13:04:18 +0200 |
---|---|---|
committer | Frederic Bezies | 2015-06-21 13:04:18 +0200 |
commit | 8efd0f92e033e83c1840d96acf84d0a88e59abde (patch) | |
tree | b8890f28a0599ff1a8793e97d34a13119379a26a | |
download | aur-8efd0f92e033e83c1840d96acf84d0a88e59abde.tar.gz |
initial commit on aur4
-rw-r--r-- | .SRCINFO | 29 | ||||
-rw-r--r-- | PKGBUILD | 73 | ||||
-rw-r--r-- | easytag-git.install | 13 |
3 files changed, 115 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..4d5c33c62fbd --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,29 @@ +pkgbase = easytag-git + pkgdesc = Utility for viewing and editing tags for most audio formats - git version + pkgver = 1543.2330fa3 + pkgrel = 1 + url = http://projects.gnome.org/easytag/ + install = easytag-git.install + arch = i686 + arch = x86_64 + license = GPL + makedepends = git + makedepends = intltool + makedepends = appdata-tools + depends = id3lib + depends = taglib + depends = libid3tag + depends = gtk3 + depends = libvorbis + depends = flac + depends = speex + depends = opusfile + depends = wavpack + depends = desktop-file-utils + provides = easytag + conflicts = easytag + source = git://git.gnome.org/easytag + md5sums = SKIP + +pkgname = easytag-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..6c69c0378407 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,73 @@ +# Maintainer: Frederic Bezies <fredbezies at gmail dot com> +# Contributor rtfreedman (rob<d0t>til<d0t>freedman<aT>gmail<d0t>com +# +## enable/disable gnome help files; adds makedepends+='yelp-tools' +_build_gnome_help="no" # yes|no + +## +## list of locales to build see also: po/LINGUAS +## bg ca cs da de el es fr he hu it ja lt nl pl pt_BR ro ru sl sr sr@latin sv tr uk zh_CN zh_TW +## +## eg. export LINGUAS="bg ru" +## +#export LINGUAS="ru de" # uncomment to enable + +pkgname=easytag-git +_gitname=easytag +pkgver=1543.2330fa3 +pkgrel=1 +pkgdesc="Utility for viewing and editing tags for most audio formats - git version" +arch=('i686' 'x86_64') +license=('GPL') +url='http://projects.gnome.org/easytag/' +depends=('id3lib' 'taglib' 'libid3tag' 'gtk3' 'libvorbis' 'flac' 'speex' 'opusfile' 'wavpack' 'desktop-file-utils') +makedepends=('git' 'intltool' 'appdata-tools') +## depends on building gnome help files +if [ "$_build_gnome_help" = 'yes' ]; then + echo -e "\n>>>\n>>> Build with GNOME help files\n>>>\n" + makedepends+=('yelp-tools') +fi + +provides=('easytag') +conflicts=('easytag') +install="$pkgname.install" +source=("git://git.gnome.org/easytag") +md5sums=('SKIP') + +pkgver() { + cd "$_gitname" + echo $(git rev-list --count master).$(git rev-parse --short master) +# git describe --always | sed -e 's|-|.|g' +# git describe --always | sed 's/^easytag.//;s/-/./g' +} + +prepare() { + cd "$_gitname" + ## remove 'node/directory;' from MimeType + sed -i 's/inode\/directory;//' data/easytag.desktop.in + ## disable-gnome-help-files + if [ "$_build_gnome_help" != 'yes' ]; then + echo -e "\n>>>\n>>> Build without GNOME help files\n>>>\n" + sed -i 's@= help po@= po@' Makefile.am + sed -e'/help\/Makefile/d' -e 's/AC_MSG_ERROR(\[yelp-tools/AC_MSG_WARN([yelp-tools/' -i configure.ac + rm -fr help/ + fi + ## add git rev to version + sed "s/(\[EasyTAG\], \[\([0-9]\).\([0-9]\).\([0-9]\)\], /(\[EasyTAG\], [\1.\2.\3-$pkgver], /" -i configure.ac + ./autogen.sh +} + +build() { + cd "$_gitname" + ## avoid breaking the build + #CFLAGS="$CFLAGS -Wno-error=deprecated-declarations" + CXXFLAGS="$CXXFLAGS -Wno-error=deprecated-declarations" + + ./configure --prefix=/usr + make +} + +package() { + cd "$_gitname" + make DESTDIR="${pkgdir}" install +} diff --git a/easytag-git.install b/easytag-git.install new file mode 100644 index 000000000000..3542e35780a9 --- /dev/null +++ b/easytag-git.install @@ -0,0 +1,13 @@ +post_install() { + glib-compile-schemas /usr/share/glib-2.0/schemas/ + xdg-icon-resource forceupdate --theme hicolor 2> /dev/null + update-desktop-database -q +} + +post_upgrade() { + post_install +} + +post_remove() { + post_install +} |