[arch-commits] Commit in sbc/trunk (PKGBUILD)
Jan Steffens
heftig at archlinux.org
Tue Dec 8 20:42:10 UTC 2020
Date: Tuesday, December 8, 2020 @ 20:42:10
Author: heftig
Revision: 403163
1.5-1
Modified:
sbc/trunk/PKGBUILD
----------+
PKGBUILD | 31 ++++++++++++++++++++++++-------
1 file changed, 24 insertions(+), 7 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-12-08 20:16:24 UTC (rev 403162)
+++ PKGBUILD 2020-12-08 20:42:10 UTC (rev 403163)
@@ -1,23 +1,40 @@
-# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens at gmail.com>
+# Maintainer: Jan Alexander Steffens (heftig) <heftig at archlinux.org>
pkgname=sbc
-pkgver=1.4
-pkgrel=2
+pkgver=1.5
+pkgrel=1
pkgdesc="Bluetooth Subband Codec (SBC) library"
url="http://www.bluez.org/"
arch=(x86_64)
license=(GPL LGPL)
depends=(glibc)
-source=(https://mirrors.edge.kernel.org/pub/linux/bluetooth/$pkgname-$pkgver.tar.xz)
-sha512sums=('f35250c202034e93ce4046d29883d76b162164d42fb59e6af8ff5e57f197244238f5f8087309cef2d44755c179e7f0869cf096735c8de510b1ac7e0f6c29d84f')
+makedepends=(git)
+_commit=b2c20a3ecf5ed00f63c94077a9762b505935ede9 # tags/1.5^0
+source=("git+https://git.kernel.org/pub/scm/bluetooth/sbc.git#commit=$_commit")
+sha512sums=('SKIP')
+pkgver() {
+ cd $pkgname
+ git describe --tags | sed 's/-/+/g'
+}
+
+prepare() {
+ cd $pkgname
+ autoreconf -fvi
+}
+
build() {
- cd $pkgname-$pkgver
+ cd $pkgname
./configure --prefix=/usr --disable-static --disable-tester
make
}
+check() {
+ cd $pkgname
+ make check
+}
+
package() {
- cd $pkgname-$pkgver
+ cd $pkgname
make DESTDIR="$pkgdir" install
}
More information about the arch-commits
mailing list