Created
July 11, 2021 20:43
-
-
Save alex19EP/d08abb2ecfd4a4958a7265478760e86d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From b0b3f4172c236b03766117d3ca7129dde0e8958d Mon Sep 17 00:00:00 2001 | |
From: Alexander Epaneshnikov <aarnaarn2@gmail.com> | |
Date: Sun, 11 Jul 2021 23:00:41 +0300 | |
Subject: [PATCH] improve pkgbuild | |
--- | |
PKGBUILD | 39 ++++++++++++++++++++------------------- | |
1 file changed, 20 insertions(+), 19 deletions(-) | |
diff --git a/PKGBUILD b/PKGBUILD | |
index 06fef1e..e802b26 100644 | |
--- a/PKGBUILD | |
+++ b/PKGBUILD | |
@@ -1,35 +1,36 @@ | |
# Maintainer: Luis Aranguren <pizzaman@hotmail.com> | |
+# Contributor: Alexander Epaneshnikov <aarnaarn2@gmail.com> | |
# Contributor: Kyle <kyle@gmx.ca> | |
+ | |
pkgname=pcaudiolib-git | |
-_gitname=pcaudiolib | |
-pkgver=1.1.2.gd6a6b00 # determined from git origin | |
-pkgrel=3 | |
-pkgdesc="Portable C Audio Library (git version)" | |
+pkgver=1.1.r6.ga41d46e | |
+pkgrel=1 | |
+pkgdesc='Portable C Audio Library ()development version' | |
arch=('aarch64' 'armv6h' 'armv7h' 'i686' 'x86_64') | |
-url="https://github.com/rhdunn/pcaudiolib" | |
+url=https://github.com/espeak-ng/pcaudiolib | |
license=('GPL3') | |
-depends=() | |
-optdepends=('alsa-lib: ALSA output support' | |
- 'pulseaudio: Pulseaudio output support') | |
-makedepends=('git' 'automake' 'autoconf') | |
-provides=( pcaudiolib ) | |
-conflicts=( pcaudiolib ) | |
-source=('git+https://github.com/rhdunn/pcaudiolib.git') | |
-md5sums=('SKIP') | |
+depends=('alsa-lib' 'libpulse') | |
+makedepends=('git') | |
+source=("git+$url.git") | |
+sha512sums=('SKIP') | |
pkgver() { | |
- cd $_gitname | |
- git describe --always | sed -e 's|v||' -e 's|-|.|g' | |
+ cd ${pkgname%-git} | |
+ git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g' | |
} | |
-build() { | |
- cd $_gitname | |
+prepare() { | |
+ cd "${pkgname%-git}" | |
./autogen.sh | |
+} | |
+ | |
+build() { | |
+ cd "${pkgname%-git}" | |
./configure --prefix=/usr | |
make | |
} | |
package() { | |
- cd $_gitname | |
- make DESTDIR="$pkgdir/" install | |
+ cd "${pkgname%-git}" | |
+ make DESTDIR="$pkgdir" install | |
} | |
-- | |
2.32.0 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment