summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD49
1 files changed, 28 insertions, 21 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 1075e40f0f7..63c2bc807bc 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,43 +1,50 @@
# Maintainer: xiretza <xiretza+aur@gmail.com>
_pkgname=openelp
-pkgname=${_pkgname}-git
-pkgver=r54.0d1a16e
-pkgrel=2
+pkgname=$_pkgname-git
+pkgver=0.8.0.r4.g9f017b1
+pkgrel=1
pkgdesc="An open source EchoLink proxy for Linux and Windows"
arch=(i686 x86_64 armv7h)
url="https://github.com/cottsay/openelp"
license=('BSD')
-depends=(pcre2)
-makedepends=(git cmake pcre2 doxygen)
-provides=("${_pkgname}")
-conflicts=("${_pkgname}")
+depends=(pcre2 openssl)
+makedepends=(git cmake doxygen)
+provides=("$_pkgname=$pkgver")
+conflicts=("$_pkgname")
replaces=()
backup=(etc/ELProxy.conf)
-source=("${_pkgname}::git+${url}")
-md5sums=('SKIP')
+source=("$_pkgname::git+${url}"
+ "$_pkgname.service"
+ "$_pkgname.sysusers"
+ "$_pkgname.tmpfiles")
+sha256sums=('SKIP'
+ '65bc8b1958a8eabdc4550e7601e171223ee78b89de8499a1aec65b6c2a73c429'
+ 'fb6aaac6ce857159d6646376951f67414a24c6eb45e19473e4b6ea1947b7c1d7'
+ '298c89d12fa8a8ce171dd88da2e66859442b31c6b419d0e124b1883d9f80eaa6')
pkgver() {
cd "$srcdir/${_pkgname}"
- printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+ git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
- cd "$srcdir/${_pkgname}"
- mkdir -p build
- cd build
- cmake -D CMAKE_INSTALL_PREFIX=/usr ..
- make
+ cmake -B build -S "$_pkgname" \
+ -DCMAKE_BUILD_TYPE=None \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DSYSCONF_INSTALL_DIR=/etc
+ make -C build
}
check() {
- cd "$srcdir/${_pkgname}/build"
- make -k check
+ make -C build -k check
}
package() {
- cd "$srcdir/${_pkgname}/build"
- make DESTDIR="$pkgdir/" install
- chmod go-r "$pkgdir/etc/ELProxy.conf"
- install -Dt "$pkgdir/usr/share/licenses/$pkgname/" ../LICENSE
+ make -C build DESTDIR="$pkgdir/" install
+ chmod 0640 "$pkgdir/etc/ELProxy.conf"
+ install -Dt "$pkgdir/usr/share/licenses/$pkgname/" "$_pkgname/LICENSE"
+ install -Dt "$pkgdir/usr/lib/systemd/system/" "$_pkgname.service"
+ install -D "$_pkgname.sysusers" "$pkgdir/usr/lib/sysusers.d/$_pkgname.conf"
+ install -D "$_pkgname.tmpfiles" "$pkgdir/usr/lib/tmpfiles.d/$_pkgname.conf"
}