diff options
author | gustawho | 2021-05-17 12:00:57 -0600 |
---|---|---|
committer | gustawho | 2021-05-17 12:00:57 -0600 |
commit | d372283c35ae532bafb7fbc5ba529033c8c8a5cb (patch) | |
tree | 0588bd85438a7695f3ca3889ee24551180d0fa5e /PKGBUILD | |
download | aur-d372283c35ae532bafb7fbc5ba529033c8c8a5cb.tar.gz |
Package added
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..9ea13e093775 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer: Gustavo Castro < gustawho [ at ] gmail [ dot ] com > + +pkgname=libqofono-git +pkgver=0.103.r0.g047b667 +pkgrel=1 +arch=('x86_64' 'arm' 'armv7h' 'armv6h' 'aarch64') +pkgdesc="A library for accessing the ofono daemon, and a declarative plugin for it." +url="https://git.sailfishos.org/mer-core/libqofono" +license=('LGPLv2.1') +depends=('qt5-declarative' 'qt5-xmlpatterns') +makedepends=('qt5-tools') +conflicts=('libqofono' 'qofono') +provides=('libqofono' 'qofono') +source=("git+${url}.git") +sha512sums=('SKIP') + +pkgver() { + cd "${pkgname%-git}" + ( set -o pipefail + git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +prepare() { + mkdir -p "${pkgname%-git}"/build +} + +build() { + cd "${pkgname%-git}"/build + qmake ../libqofono.pro + make +} + +package() { + cd "${pkgname%-git}"/build + INSTALL_ROOT="${pkgdir}" make install +}
\ No newline at end of file |