diff options
author | Jerry | 2020-03-23 14:58:44 +0800 |
---|---|---|
committer | Jerry | 2020-03-23 14:58:44 +0800 |
commit | a6498f69d3c256b9a84ea4d13ddb9bdbf5a57c28 (patch) | |
tree | 7817beda3e01c42920edaa67e7a393c7c0f38a11 | |
download | aur-musly-git.tar.gz |
package musly-git
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 39 |
2 files changed, 55 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..b79b60e25950 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = musly-git + pkgdesc = Music Similarity Library + pkgver = 0.1.110.g7a0c6a9 + pkgrel = 1 + url = https://www.musly.org + arch = x86_64 + license = custom:MPL2.0 + makedepends = cmake + depends = ffmpeg + depends = eigen + provides = musly + source = musly::git+https://github.com/dominikschnitzer/musly.git#branch=master + md5sums = SKIP + +pkgname = musly-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..641c7888ed82 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,39 @@ +# Maintainer: Jerry Xiao <aur at mail.jerryxiao.cc> + +_srcname=musly +pkgname=musly-git +pkgdesc="Music Similarity Library" +pkgver=0.1.110.g7a0c6a9 +pkgrel=1 +arch=('x86_64') +url="https://www.musly.org" +license=('custom:MPL2.0') +provides=('musly') +makedepends=('cmake') +depends=('ffmpeg' 'eigen') +source=( + "${_srcname}::git+https://github.com/dominikschnitzer/musly.git#branch=master" +) +md5sums=( + 'SKIP' +) + +pkgver() { + cd "$srcdir/${_srcname}" + git describe --tags | sed 's/^v//;s/-/./g' +} + +build() { + cd "$srcdir/${_srcname}" + mkdir -p build + cd build + cmake .. \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release + make +} + +package() { + cd "$srcdir/${_srcname}/build" + make DESTDIR="$pkgdir" install +} |