Skip to content

Instantly share code, notes, and snippets.

@wenLiangcan
Last active January 31, 2016 15:37
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wenLiangcan/f2655ad6ba1509017123 to your computer and use it in GitHub Desktop.
Save wenLiangcan/f2655ad6ba1509017123 to your computer and use it in GitHub Desktop.
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