summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fdd3c1aa72e4d4b0a225d979422c037af373310a (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
# Maintainer: genofire <geno+dev@fireorbit.de>

_pkgname="purple-mm-sms"
pkgname="${_pkgname}-git" # '-bzr', '-git', '-hg' or '-svn'
pkgver=0.1.6.r0.g0b2da5e
pkgrel=1
pkgdesc="Purple SMS plugin using ModemManager"
url="https://source.puri.sm/Librem5/purple-mm-sms"
arch=('i686' 'x86_64' 'armv6h' 'armv7h' 'aarch64')
depends=('libpurple' 'libmm-glib' 'modemmanager')
provides=('purple-mm-sms' 'libpurple-mm-sms' 'purple-mm-sms-git' 'libpurple-mm-sms-git')
conflicts=('purple-mm-sms')
source=("git+${url}.git")
sha512sums=('SKIP')

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

build() {
	cd "$srcdir/${_pkgname}"
	make
}

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