diff options
author | vodka2 | 2018-09-16 12:26:39 +0700 |
---|---|---|
committer | vodka2 | 2018-09-25 22:11:44 +0700 |
commit | 0e8cbc28466eca51dba6f555929c5a9e9b07deea (patch) | |
tree | a0f82ea17925e5cf84283ba4f004fe1afa286e7f /PKGBUILD | |
download | aur-vk-music-fs-git.tar.gz |
Initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..c87116bed837 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,29 @@ +# Maintainer: vodka2 <vodka2vodka at rambler.ru> +pkgname=vk-music-fs-git +pkgrel=1 +pkgver=r86.3b26469 +pkgdesc="FUSE virtual file system for VK (VKontakte) audios" +url="https://github.com/vodka2/vk-music-fs" +arch=('x86_64') +license=('custom') +depends=('fuse' 'boost-libs' 'zlib' 'openssl') +makedepends=('git' 'cmake' 'boost') +source=("${pkgname}::git+https://github.com/vodka2/vk-music-fs.git#branch=master") +md5sums=(SKIP) +pkgver() { + cd "$srcdir/${pkgname}" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cd "${srcdir}/${pkgname}" + mkdir -p build + cd build + cmake .. -DCMAKE_BUILD_TYPE=Release + cmake --build . --target vk_music_fs +} + +package() { + mkdir -p "$pkgdir/usr/bin" + mv "${srcdir}/${pkgname}/build/vk_music_fs" "$pkgdir/usr/bin" +} |