summaryrefslogtreecommitdiffstats
path: root/qelly-git/PKGBUILD
blob: cfe4f317dffc12e6a1f0021d2ad4aa92f487d047 (plain) (blame)
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
35
36
# Maintainer: lantw44 (at) gmail (dot) com

pkgname=qelly-git
_pkgname=Qelly
pkgver=1.0b.5.g76c0435
pkgrel=1
pkgdesc="Beautiful cross-platform BBS client"
arch=('x86_64' 'i686')
url="https://github.com/uranusjr/Qelly"
license=('GPL')
depends=('qt4' 'libqxt')
makedepends=()
conflicts=('qelly')
provides=('qelly')
source=("$pkgname::git+https://github.com/uranusjr/Qelly.git")
md5sums=('SKIP')

pkgver() {
    cd "${srcdir}/${pkgname}"
    local ver="$(git describe --long)"
    ver="${ver#v}"
    ver="${ver//-/.}"
    printf "%s" "$ver"
}

build() {
    cd "${srcdir}/${pkgname}"
    qmake-qt4
    make
}

package() {
    cd "${srcdir}/${pkgname}"
    mkdir -p "${pkgdir}/usr/bin"
    install -m 755 "bin/Qelly" "${pkgdir}/usr/bin"
}