summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 914bc37640100357b663d6049e00dc97526a3978 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Maintainer: shi bowen <sbw /at/ sbw.so>
pkgname=doubanfm
pkgver=r51.3c2956f
pkgrel=1
pkgdesc="Beautiful DoubanFM player based on Qt5"
arch=('x86_64' 'i686')
url="https://github.com/sbwtw/DoubanFM"
license=('GPL3')
depends=('gcc-libs' 'qt5-base' 'qt5-multimedia')
makedepends=('git')
conflicts=('DoubanFM')
provides=('DoubanFM')
install=${pkgname}.install
source=('git+https://github.com/sbwtw/DoubanFM.git')
md5sums=('SKIP')

_dirname=DoubanFM

pkgver() {
    cd ${srcdir}/${_dirname}
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
    cd ${srcdir}/${_dirname}/src
    qmake-qt5
    make
}

package() {
    cd ${srcdir}/${_dirname}/src

    make INSTALL_ROOT="${pkgdir}" install
}