Skip to content

Instantly share code, notes, and snippets.

@kingcody
Created June 29, 2013 04:34
Show Gist options
  • Save kingcody/5889764 to your computer and use it in GitHub Desktop.
Save kingcody/5889764 to your computer and use it in GitHub Desktop.
Pianobarfly PKGBUILD(ABS) for ghuntly/pianobarfly realease: 20130628
# Contributor: Cyker Way <cykerway at gmail dot com>
pkgname=pianobarfly-git
pkgver=20130628
pkgrel=1
pkgdesc="A console client for the personalized web radio pandora"
url="http://www.ghuntley.com/"
arch=('i686' 'x86_64')
license=('MIT')
depends=('libao' 'faad2' 'libmad' 'readline')
optdepends=('libmad')
makedepends=('pkgconfig>=0.9' 'git' 'automake')
provides=('pianobarfly')
conflicts=('pianobarfly')
_gitroot="github.com/ghuntley/pianobarfly.git"
_gitname="pianobarfly"
source=(
"git://${_gitroot}#branch=master"
"https://raw.github.com/aljex/misc/master/pianobarfly/tmp_path_fix.diff"
)
md5sums=(
'SKIP'
'5871ce4cde4deeee83141f558cd35356'
)
sha256sums=(
'SKIP'
'a74c7ea8dded8e614a479e4c58ffdb1b4cbee56e324fabac29776471a2959982'
)
build() {
cd ${_gitname}
# Patch to fix id3 tag issue due to tmp file error
patch -i ${srcdir}/tmp_path_fix.diff -p1
make || return 1
}
package() {
idir=${pkgdir}/usr/share/licenses/${pkgname}
cd ${_gitname}
make DESTDIR=${pkgdir} PREFIX=/usr install || return 1
install -m755 -d "${idir}"
install -m644 LICENSE "${idir}/" || return 1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment