diff options
-rw-r--r-- | .SRCINFO | 23 | ||||
-rw-r--r-- | PKGBUILD | 41 | ||||
-rw-r--r-- | marketo.install | 12 |
3 files changed, 76 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..3bc0014568a1 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,23 @@ +pkgbase = marketo-git + pkgdesc = A note-taking KDE application with the power of lightweight markup language + pkgver = r78.9837694 + pkgrel = 1 + url = https://github.com/sadhen/marketo + install = marketo.install + arch = i686 + arch = x86_64 + license = GPL3 + makedepends = git + makedepends = cmake + makedepends = extra-cmake-modules + depends = libmdcpp + depends = ktexteditor + depends = kdewebkit + depends = hicolor-icon-theme + provides = marketo + conflicts = marketo + source = git://github.com/sadhen/marketo.git + md5sums = SKIP + +pkgname = marketo-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..75d1d6e456ab --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,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=r78.9837694 +pkgrel=1 +arch=('i686' 'x86_64') +url="https://github.com/sadhen/marketo" +license=('GPL3') +provides=('marketo') +conflicts=('marketo') +depends=("libmdcpp" "ktexteditor" "kdewebkit" "hicolor-icon-theme") +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 +} diff --git a/marketo.install b/marketo.install new file mode 100644 index 000000000000..6481cee07145 --- /dev/null +++ b/marketo.install @@ -0,0 +1,12 @@ +post_install() { + xdg-icon-resource forceupdate --theme hicolor &> /dev/null + update-desktop-database -q +} + +post_upgrade() { + post_install +} + +post_remove() { + post_install +} |