diff options
author | AdriĆ Arrufat | 2015-09-20 20:25:25 +0200 |
---|---|---|
committer | AdriĆ Arrufat | 2015-09-20 20:25:25 +0200 |
commit | 739281aa0f5935979a738b8dc372af20be8baac2 (patch) | |
tree | 56fcf3cad65790a37cd52455a62a73245fcc66cc /PKGBUILD | |
parent | 9e75b3131ed51442233db665474b06f2922ee48d (diff) | |
download | aur-rhythmbox-lastfmplaycount-git.tar.gz |
Update PKGBUILD to a working version
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 37 |
1 files changed, 17 insertions, 20 deletions
@@ -1,6 +1,8 @@ # Maintainer: Adria Arrufat <swiftscythe at gmail dot com> -pkgname=rhythmbox-lastfmplaycount-git -pkgver=20121129 + +_pkgname=lastfmplaycount +pkgname=rhythmbox-${_pkgname}-git +pkgver=0.r1.9e75b31 pkgrel=1 pkgdesc="A Rhythmbox plugin that fetches the currently playing track's playcount from Last.fm" url="https://github.com/BramBonne/LastfmPlaycount" @@ -8,27 +10,22 @@ arch=('i686' 'x86_64') license=('GPL') makedepends=('git') depends=('rhythmbox') +install=rhythmbox-${_pkgname}.install +md5sums=('SKIP') +source=(${_pkgname}::git+https://github.com/BramBonne/LastfmPlaycount.git) -_plugin=lastfmplaycount -_gitroot="https://github.com/BramBonne/LastfmPlaycount.git" -_gitname="rhythmbox-$_plugin" - -build () { +pkgver() { cd ${srcdir} - msg "Connecting to the GIT server..." - if [[ -d ${srcdir}/${_gitname} ]] ; then - cd ${_gitname} - git pull origin - msg "The local files are updated..." - else - git clone ${_gitroot} ${_gitname} - cd ${_gitname} - fi - msg "GIT checkout done." + echo "0.r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)" } package() { - cd "${srcdir}/${_gitname}" - mkdir -p "${pkgdir}/usr/lib/rhythmbox/plugins/${_plugin}" - cp * "${pkgdir}/usr/lib/rhythmbox/plugins/${_plugin}" + cd "${srcdir}/${_pkgname}" + + mkdir -p "${pkgdir}/usr/share/glib-2.0/schemas" + cp org.gnome.rhythmbox.plugins.lastfmplaycount.gschema.xml \ + "${pkgdir}/usr/share/glib-2.0/schemas" + + mkdir -p "${pkgdir}/usr/lib/rhythmbox/plugins/${_pkgname}" + cp * "${pkgdir}/usr/lib/rhythmbox/plugins/${_pkgname}" } |