46 lines
1005 B
Bash
46 lines
1005 B
Bash
# Maintainer: Colin Reeder <colin AT reederhome DOT net>
|
|
pkgname=pa-applet-git
|
|
pkgver=19.3b4f8b3
|
|
pkgrel=1
|
|
pkgdesc="PulseAudio control applet"
|
|
arch=(i686 x86_64)
|
|
url="https://github.com/fernandotcl/pa-applet"
|
|
license=('BSD')
|
|
depends=('gtk3' 'libnotify' 'libpulse')
|
|
makedepends=('git')
|
|
options=('!libtool')
|
|
|
|
source=(
|
|
"$pkgname"::'git://github.com/fernandotcl/pa-applet.git'
|
|
'smaller_volume_step.patch'
|
|
)
|
|
|
|
sha256sums=(
|
|
'SKIP'
|
|
'889a9d5fadd29032655cef126b6c3895121706865098c249636be5b3d9d3fbd2'
|
|
)
|
|
|
|
pkgver() {
|
|
cd "$pkgname"
|
|
echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
|
|
}
|
|
|
|
prepare() {
|
|
cd "$pkgname"
|
|
patch --forward --strip=1 --input="${srcdir}/smaller_volume_step.patch"
|
|
}
|
|
|
|
build() {
|
|
cd "$srcdir/$pkgname"
|
|
CFLAGS+=" -Wno-error"
|
|
./autogen.sh
|
|
./configure --prefix=/usr
|
|
make -j$(nproc)
|
|
}
|
|
|
|
package() {
|
|
cd "$srcdir/$pkgname"
|
|
make DESTDIR="$pkgdir/" install
|
|
install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
|
}
|