55 lines
1.5 KiB
Text
55 lines
1.5 KiB
Text
# Maintainer: Antoine Martin <antoine.martin@protonmail.com>
|
|
pkgname=dam
|
|
pkgver=0.3
|
|
pkgrel=0
|
|
pkgdesc="A digital audio manager built very specifically for my git-annex backed music collection"
|
|
url="https://github.com/ayakael/dam"
|
|
arch="noarch"
|
|
license="GPL3"
|
|
depends="bash shntool gawk sed grep bc git-annex findutils coreutils git ffmpeg imagemagick flac p7zip"
|
|
makedepends="bash coreutils findutils gawk git"
|
|
source="$pkgname-$pkgver.tar.gz"
|
|
_giturl="https://github.com/ayakael/dam"
|
|
_gittag="$pkgver"
|
|
builddir="$srcdir/$pkgname"
|
|
options="!check"
|
|
|
|
snapshot() {
|
|
mkdir -p "$srcdir"
|
|
cd "${SRCDEST:-$srcdir}"
|
|
if ! [ -d $pkgname.git ]; then
|
|
git clone $_giturl $pkgname.git || return 1
|
|
cd $pkgname.git
|
|
else
|
|
cd $pkgname.git
|
|
git fetch || return 1
|
|
fi
|
|
|
|
echo "Checking out"
|
|
git checkout $_gittag
|
|
echo "Repo archive"
|
|
git archive --prefix="$pkgname/" -o dam.tar --format "tar" $_gittag
|
|
|
|
echo "Submod update"
|
|
git submodule update --init
|
|
cd bunc
|
|
echo "Submod archive"
|
|
git archive --prefix="$pkgname/bunc/" --format="tar" -o "../bunc.tar" "master"
|
|
cd ..
|
|
|
|
|
|
tar --concatenate --file dam.tar bunc.tar
|
|
gzip dam.tar -c > "$SRCDEST"/$pkgname-$pkgver.tar.gz
|
|
ln -s "$SRCDEST"/$pkgname-$pkgver.tar.gz "$startdir"/$pkgname-$pkgver.tar.gz
|
|
}
|
|
|
|
build() {
|
|
cd "$builddir"
|
|
./build.sh "VERSION=${pkgver}"
|
|
}
|
|
|
|
package() {
|
|
cd "$builddir"
|
|
install -Dm755 ./dam "$pkgdir"/usr/bin/dam
|
|
}
|
|
sha512sums="de509b13b5734df16e25d8082279ffdd458d26fbc745642df1d196905350b76cf4643ae3a19d7d62f1b6aaba9fe879b3214cf390377c41bfaca235b6e80c73dd dam-0.3.tar.gz"
|