Skip to content

Instantly share code, notes, and snippets.

@wenLiangcan
Last active January 31, 2016 15:37
Show Gist options
  • Save wenLiangcan/f2655ad6ba1509017123 to your computer and use it in GitHub Desktop.
Save wenLiangcan/f2655ad6ba1509017123 to your computer and use it in GitHub Desktop.

Revisions

  1. wenLiangcan revised this gist Jan 31, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion PKGBUILD
    Original file line number Diff line number Diff line change
    @@ -4,7 +4,7 @@ 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=('any')
    arch=('x86_64' 'i686')
    url="https://github.com/timxx/xmradio"
    license=('GPL3')
    depends=('dbus' 'vlc')
  2. wenLiangcan revised this gist Jan 31, 2016. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion PKGBUILD
    Original file line number Diff line number Diff line change
    @@ -27,7 +27,6 @@ makedepends=('git'
    'libpeas')
    source=("git://github.com/timxx/xmradio.git")
    install="${pkgname}.install"

    md5sums=('SKIP')

    pkgver() {
  3. wenLiangcan revised this gist Jan 31, 2016. 1 changed file with 11 additions and 0 deletions.
    11 changes: 11 additions & 0 deletions xmradio-git.install
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    post_install() {
    sudo glib-compile-schemas '/usr/share/glib-2.0/schemas'
    }

    post_upgrade() {
    post_install
    }

    post_remove() {
    post_install
    }
  4. wenLiangcan created this gist Jan 31, 2016.
    51 changes: 51 additions & 0 deletions PKGBUILD
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,51 @@
    # Maintainer: Vic Luo <[email protected]>

    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=('any')
    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
    }