summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2b7e70f405d5a9cb6217db8d862afcff3c9d38ce (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
35
36
37
38
39
40
41
# Maintainer: CUI Hao <cuihao.leo@gmail.com>
pkgname=marketo-git
_pkgname=marketo
pkgdesc="A note-taking KDE application with the power of lightweight markup language"
pkgver=r145.ad2f92d
pkgrel=1
arch=('i686' 'x86_64')
url="https://github.com/sadhen/marketo"
license=('GPL3')
provides=('marketo')
conflicts=('marketo')
depends=("libmdcpp" "ktexteditor" "hicolor-icon-theme" "kfilemetadata" "kdewebkit")
makedepends=('git' 'cmake' 'extra-cmake-modules')
source=("git://github.com/sadhen/${_pkgname}.git")
install="${_pkgname}.install"
md5sums=(SKIP)

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

build() {
    cd "$srcdir/$_pkgname"
    git submodule init
    git submodule update

    rm -rf "$srcdir/build"
    mkdir -p "$srcdir/build"
    cd "$srcdir/build"

    cmake "../${_pkgname}" \
          -DCMAKE_INSTALL_PREFIX=/usr \
          -DCMAKE_BUILD_TYPE=Release
    make
}

package() {
    cd "$srcdir/build"
    make DESTDIR="$pkgdir" install
}