diff options
author | kiasoc5 | 2021-04-05 15:42:21 -0400 |
---|---|---|
committer | kiasoc5 | 2021-04-05 16:01:04 -0400 |
commit | 4ba8bcb625e2009397dbfefee72b8f37f6f45313 (patch) | |
tree | 8a51a210a5c6450f4e2c3f7ae91fcd0dbd0f9f5f | |
parent | 22c28c9371a86c774012807c4f98febc80832619 (diff) | |
download | aur-4ba8bcb625e2009397dbfefee72b8f37f6f45313.tar.gz |
Adopt package
- Update dependencies
- Change build command
- Install readme
-rw-r--r-- | .SRCINFO | 7 | ||||
-rw-r--r-- | PKGBUILD | 43 |
2 files changed, 27 insertions, 23 deletions
@@ -1,13 +1,16 @@ pkgbase = midivisualizer-git pkgdesc = A small MIDI visualizer tool, using OpenGL - pkgver = 4.1.r6.g5dc541a - pkgrel = 1 + pkgver = 6.3.r2.gedb52a8 + pkgrel = 2 url = https://github.com/kosua20/MIDIVisualizer arch = x86_64 license = MIT makedepends = cmake + makedepends = git depends = gtk3 + depends = ffmpeg provides = midivisualizer + conflicts = midivisualizer source = midivisualizer::git+https://github.com/kosua20/MIDIVisualizer sha256sums = SKIP @@ -1,39 +1,40 @@ -# Maintainer: Dimitris Kiziridis <ragouel at outlook dot com> +# Maintainer: kiasoc5 <kiasoc5 at tutanota dot com> + +# Contributor: Dimitris Kiziridis <ragouel at outlook dot com> pkgname=midivisualizer-git -pkgver=4.1.r6.g5dc541a -pkgrel=1 +_pkgname=midivisualizer +pkgver=6.3.r2.gedb52a8 +pkgrel=2 pkgdesc='A small MIDI visualizer tool, using OpenGL' arch=('x86_64') url='https://github.com/kosua20/MIDIVisualizer' license=('MIT') provides=("${pkgname%-git}") -depends=('gtk3') -makedepends=('cmake') -source=("${pkgname%-git}::git+https://github.com/kosua20/MIDIVisualizer") +conflicts=("${pkgname%-git}") +depends=('gtk3' 'ffmpeg') +makedepends=('cmake' 'git') +source=("$_pkgname::git+https://github.com/kosua20/MIDIVisualizer") sha256sums=('SKIP') pkgver() { - cd "${pkgname%-git}" + cd "$_pkgname" git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' } -prepare() { - cd "${pkgname%-git}" - rm -rf build - mkdir build - cd build - cmake -DCMAKE_INSTALL_PREFIX=/usr .. -} - build() { - cd "${pkgname%-git}/build" - make -j `nproc` + cmake -B build -S "$_pkgname" \ + -Wno-dev + make -C build } package() { - cd "${pkgname%-git}/build" - install -Dm755 MIDIVisualizer "${pkgdir}/usr/bin/${pkgname%-git}" - install -Dm644 ../LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + install -Dm755 build/MIDIVisualizer "$pkgdir/usr/bin/$_pkgname" + install -Dm644 "$_pkgname"/LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + + for doc in README.md result{1,2,3}.png; do + install -Dm644 "$_pkgname/$doc" -t \ + "$pkgdir/usr/share/doc/$_pkgname" + done } -# vim:set ts=2 sw=2 et:
\ No newline at end of file +# vim:set ts=2 sw=2 et: |