diff options
author | D3S0X | 2020-04-06 00:51:25 +0200 |
---|---|---|
committer | D3S0X | 2020-04-06 00:51:25 +0200 |
commit | 3045980db21b13ff3725452d37aa24bf94141b35 (patch) | |
tree | 102c663652c968ab860700b15764386d1478a5c8 /PKGBUILD | |
download | aur-3045980db21b13ff3725452d37aa24bf94141b35.tar.gz |
first commit
Diffstat (limited to 'PKGBUILD')
-rwxr-xr-x | PKGBUILD | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100755 index 000000000000..d346da4d7a35 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer: Nico <desoxhd@gmail.com> +pkgname=soundux-git +pkgver=r61.6003b8d +pkgrel=1 +pkgdesc="A universal soundboard in Qt for linux using pulseaudio modules" +arch=('any') +url="https://github.com/D3S0X/Soundux" +license=('GPL3') +depends=('qt5-base' 'qt5-x11extras') +makedepends=('qt5-tools' 'git' 'qpm-bin') +optdepends=('mpg123: mp3 support') +source=("git+https://github.com/D3S0X/Soundux.git" "soundux.desktop") +sha256sums=('SKIP' '489482294980db2352f754d1f26450daa545b39acd863a5b0069cea922944c60') + +pkgver() { + cd "${srcdir}/Soundux" + + # Get the version number. + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cd "${srcdir}/Soundux" + qpm install + mkdir build + cd build + qmake .. + make +} + +package() { + # install binary + install -Dm 755 "${srcdir}/Soundux/build/Soundux" "${pkgdir}/usr/bin/Soundux" + # install icon + install -Dm 664 "${srcdir}/Soundux/icon.jpg" "${pkgdir}/usr/share/pixmaps/soundux-icon.jpg" + # install desktop file + install -Dm 644 "${srcdir}/soundux.desktop" "${pkgdir}/usr/share/applications/soundux.desktop" +} |