2018-03-17 18:26:40 +01:00
|
|
|
# $Id$
|
|
|
|
# Maintainer: Markus Koch <markus@notsyncing.net>
|
|
|
|
|
|
|
|
pkgname=mdiary-git
|
2018-07-08 09:16:29 +02:00
|
|
|
pkgver=20180708.137.017e6e8
|
2018-03-17 18:26:40 +01:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc='A viewer for a file based diary with entries written in markdown.'
|
|
|
|
arch=('i686' 'x86_64')
|
|
|
|
url='https://git.notsyncing.net:8080/markus/mdiary'
|
|
|
|
license=('GPL')
|
|
|
|
depends=('gtk3' 'glib2' 'webkit2gtk')
|
|
|
|
makedepends=('cmake')
|
2021-04-20 21:30:42 +02:00
|
|
|
source=("$pkgname"::"git+https://git.notsyncing.net/markus/mdiary.git")
|
2018-03-17 18:26:40 +01:00
|
|
|
sha1sums=('SKIP')
|
|
|
|
|
|
|
|
pkgver () {
|
|
|
|
_date=`date +"%Y%m%d"`
|
|
|
|
cd "${srcdir}/${pkgname}"
|
|
|
|
echo "$_date.$(git rev-list --count master).$(git rev-parse --short master)"
|
|
|
|
}
|
|
|
|
|
2018-07-08 09:16:29 +02:00
|
|
|
prepare() {
|
|
|
|
cd $pkgname
|
|
|
|
git submodule init
|
|
|
|
git submodule update
|
|
|
|
}
|
2018-03-17 18:26:40 +01:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "$srcdir/$pkgname"
|
|
|
|
|
|
|
|
cmake .
|
|
|
|
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "$srcdir/$pkgname"
|
|
|
|
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
|
|
|
|
install -D -m644 "$srcdir/$pkgname/dist/mdiary.svg" \
|
|
|
|
"$pkgdir/usr/share/icons/hicolor/scalable/apps/mdiary.svg"
|
|
|
|
install -D -m644 "$srcdir/$pkgname/dist/mdiary.desktop" \
|
|
|
|
"$pkgdir/usr/share/applications/mdiary.desktop"
|
|
|
|
}
|