summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f5c1ab9e7188ae84652f949c40e82942ec2c0897 (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
# Maintainer: k1f0 <generic@k1f0.mozmail.com>
_pkgname=signalbackup-tools
pkgname=${_pkgname}-git
pkgver=20240910.r0.g1543540
pkgrel=2
pkgdesc="Tool to work with Signal Backup files"
arch=('x86_64')
url="https://github.com/bepaald/signalbackup-tools"
license=('GPL3')
depends=('openssl' 'sqlite' 'dbus')
makedepends=('git' 'pkgconfig')
provides=("signalbackup-tools")
conflicts=()
source=("git+https://github.com/bepaald/${_pkgname}.git")
md5sums=('SKIP')

pkgver() {
	cd "$srcdir/${_pkgname}"
	printf "%s" "$(git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g')"
}

build() {
	cd "$srcdir/${_pkgname}"
	export CXXFLAGSEXTRA="$(pkg-config --cflags dbus-1)"
	export LDLIBS="$(pkg-config --libs dbus-1) -lcrypto -lsqlite3"
	./BUILDSCRIPT.bash
}

package() {
	cd "$srcdir/${_pkgname}"
	install -Dm755 ${_pkgname} "${pkgdir}/usr/bin/${_pkgname}"
	install -Dm644 README.md "${pkgdir}/usr/share/doc/${_pkgname}/README"
}