Last active
January 31, 2016 15:37
-
-
Save wenLiangcan/f2655ad6ba1509017123 to your computer and use it in GitHub Desktop.
Arch Linux packaging scripts for timxx/xmradio
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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