summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9dcd43a021ed4e9e2a910b766db8ff670fe4e4bd (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
# Maintainer: Emilio Reggi <nag@mailbox.org>
pkgname=mastorss-git
_pkgname=mastorss
pkgver=r273.2d113ab
pkgrel=1
pkgdesc="mastorss reads RSS feeds and posts the items via the Mastodon API. Does not support Atom at the moment."
arch=('x86_64')
url="https://schlomp.space/tastytea/mastorss.git"
license=('GPL')
groups=()
depends=('mastodonpp-git' 'jsoncpp' 'boost-libs')
makedepends=('git' 'cmake')
source=("${_pkgname}"::"git+https://schlomp.space/tastytea/mastorss.git")
md5sums=('SKIP')

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

build() {
    cmake -B "${_pkgname}/build" -S "${_pkgname}" -DCMAKE_INSTALL_PREFIX=/usr -Wno-dev
	make -C "${_pkgname}/build"
}

package() {
    make -C "${_pkgname}/build" DESTDIR="$pkgdir" install
	install -D -m644 "${_pkgname}/LICENSE" -t "${pkgdir}/usr/share/licenses/${_pkgname}"
}