Skip to content

Instantly share code, notes, and snippets.

@wenLiangcan wenLiangcan/PKGBUILD
Last active Jan 31, 2016

Embed
What would you like to do?
Arch Linux packaging scripts for timxx/xmradio
# Maintainer: Vic Luo <vicluo96@gmail.com>
pkgname=xmradio-git
pkgver=0.5.1.14.ga5187cc
pkgrel=1
pkgdesc="xmradio is a tiny Internet Xia Mi Radio client for Linux, which supports many radio style, skin builtin and many other features."
arch=('x86_64' 'i686')
url="https://github.com/timxx/xmradio"
license=('GPL3')
depends=('dbus' 'vlc')
makedepends=('git'
'cmake'
'gcc'
'gettext'
'intltool'
'pkg-config'
'zlib'
'sqlite'
'libnotify'
'glib2'
'curl'
'libxml2'
'gtk3'
'dbus-glib'
'libdbusmenu-glib'
'gstreamer'
'libpeas')
source=("git://github.com/timxx/xmradio.git")
install="${pkgname}.install"
md5sums=('SKIP')
pkgver() {
cd "xmradio"
git describe --tags | sed 's/-/./g'
}
build() {
cd "xmradio"
mkdir build
cd build
echo "$pkgdir"
cmake .. -DCMAKE_INSTALL_PREFIX="/usr"
make
}
package() {
cd "xmradio/build"
make DESTDIR="$pkgdir/" install
}
post_install() {
sudo glib-compile-schemas '/usr/share/glib-2.0/schemas'
}
post_upgrade() {
post_install
}
post_remove() {
post_install
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.