[arch-commits] Commit in libsrtp/trunk (PKGBUILD)
Jan Steffens
heftig at archlinux.org
Tue Jul 11 20:43:49 UTC 2017
Date: Tuesday, July 11, 2017 @ 20:43:48
Author: heftig
Revision: 300124
1.5.4-2
Modified:
libsrtp/trunk/PKGBUILD
----------+
PKGBUILD | 20 ++++++++++++++------
1 file changed, 14 insertions(+), 6 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-07-11 20:40:22 UTC (rev 300123)
+++ PKGBUILD 2017-07-11 20:43:48 UTC (rev 300124)
@@ -6,7 +6,7 @@
pkgname=libsrtp
pkgver=1.5.4
-pkgrel=1
+pkgrel=2
epoch=1
pkgdesc="Library for SRTP (Secure Realtime Transport Protocol)"
url="https://github.com/cisco/libsrtp"
@@ -13,23 +13,31 @@
arch=(i686 x86_64)
license=(BSD)
depends=(glibc)
+makedepends=(git)
options=(staticlibs)
-source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
-sha256sums=('56a7b521c25134f48faff26b0b1e3d4378a14986a2d3d7bc6fefb48987304ff0')
+_commit=078c4a5b2a4380dea025998ceea9e0a1e3164d2d # tags/v1.5.4
+source=("git+https://github.com/cisco/libsrtp#commit=$_commit")
+sha256sums=('SKIP')
+# Broken: There are tags like v1.5.4 but also "moving" tags like v1 and v1.5
+#pkgver() {
+# cd $pkgname
+# git describe --tags | sed 's/^v//;s/-/+/g'
+#}
+
prepare() {
- cd $pkgname-$pkgver
+ cd $pkgname
autoreconf -fvi
}
build() {
- cd $pkgname-$pkgver
+ cd $pkgname
./configure --prefix=/usr
make libsrtp.a shared_library
}
package() {
- cd $pkgname-$pkgver
+ cd $pkgname
make DESTDIR="$pkgdir" install
install -Dm0644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
}
More information about the arch-commits
mailing list