summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cafc81e84a03a5b08870568f732c35d523c516d9 (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
# Maintainer: Anže Pintar <anze@anzepintar.com>

pkgname=anymeal-git
pkgver=r$(git ls-remote https://github.com/wedesoft/anymeal.git HEAD | cut -c1-7)
pkgrel=1
pkgdesc="Recipe management software. Supports MealMaster recipes, import, export, search, display, edit, and printing them."
arch=('x86_64')
url="https://github.com/wedesoft/anymeal"
license=('GPL3')
depends=('sqlite' 'qt5-base' 'recode')
makedepends=('autoconf' 'automake' 'libtool' 'flex' 'gtest' 'qt5-tools' 'git')
source=("git+https://github.com/wedesoft/anymeal.git")
conflicts=("anymeal")
sha256sums=('SKIP')

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

prepare() {
    cd "$srcdir/$pkgname"
    autoreconf -fi
}

build() {
    cd "$srcdir/$pkgname"
    ./configure --prefix=/usr
    make
}

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