blob: 6c581dc3e4e6ca8e8302871784bd06584c3af35a (
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
|
# Maintainer: Emilio Reggi <nag@mailbox.org>
pkgname=mastodonpp-git
_pkgname=mastodonpp
_source=https://schlomp.space/tastytea/mastodonpp.git
pkgver=r337.cca3a4a
pkgrel=1
pkgdesc="A C++ wrapper for the Mastodon and Pleroma APIs. It replaces mastodon-cpp."
arch=('x86_64')
url="https://schlomp.space/tastytea/mastodonpp.git"
license=('AGPL')
depends=('libcurl.so')
makedepends=('git' 'cmake')
optdepends=('doxygen: documentation' 'catch2: tests')
provides=("${_pkgname}")
conflicts=("${_pkgname}")
source=("${_pkgname}"::"git+${_source}")
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}"
}
|