diff options
author | Kirill Minligareev | 2022-07-09 21:25:47 +0500 |
---|---|---|
committer | Kirill Minligareev | 2022-07-09 21:25:47 +0500 |
commit | f64313fc315717f45f9f21ec44e1db5996a19adc (patch) | |
tree | 6df75e75d7f1a0e316f2ab559a8d12202667c115 /PKGBUILD | |
parent | e968ffc614aca111e2a170446bee94ad33f8b89d (diff) | |
download | aur-f64313fc315717f45f9f21ec44e1db5996a19adc.tar.gz |
fix source, adjust dependencies
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 19 |
1 files changed, 12 insertions, 7 deletions
@@ -1,28 +1,33 @@ pkgname=rsgain-git -pkgver=2.0.1 +_pkgname=rsgain +pkgver=20220709.g1c63a566d60cbf8d1614b3f8aa5c5a00e680ea30 pkgrel=1 -epoch= pkgdesc="ReplayGain 2.0 loudness normalizer" arch=('x86_64') url="https://github.com/complexlogic/rsgain" license=('BSD') groups=() depends=('libebur128' 'taglib' 'libavformat.so' 'libavcodec.so' 'libswresample.so' 'libavutil.so' 'libinih') -makedepends=('cmake') +makedepends=('git' 'cmake') provides=('rsgain') -source=("${pkgname}-${pkgver}.tar.gz::https://github.com/complexlogic/${pkgname}/archive/refs/tags/v${pkgver}.tar.gz") +conflicts=('rsgain') +source=("git+https://github.com/complexlogic/rsgain.git") md5sums=('SKIP') -validpgpkeys=() + +pkgver() { + cd $_pkgname + date +"%Y%m%d"."g$(git rev-parse HEAD)" +} build() { - cd "$pkgname-$pkgver" + cd "$_pkgname" mkdir build && cd build cmake .. -DCMAKE_INSTALL_PREFIX=/usr make } package() { - cd "$pkgname-$pkgver/build" + cd "$_pkgname/build" make DESTDIR="$pkgdir/" install } |