blob: 776e8c101c3a4363ecf37001ccc19e8907277b39 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# Maintainer: Elia Nitsche <nitscheelia at gmail.com>
pkgname=fauxdacious-git
_pkgname=fauxdacious
pkgver=4.5.r665
pkgrel=2
pkgdesc="Audacious Audioplayer fork, adds DVD & video play, and much more (git version)"
arch=('x86_64')
url="https://wildstar84.wordpress.com/fauxdacious/"
license=('BSD' 'custom')
depends=('glib2' 'gtk3' 'qt6-base' 'qt6-imageformats' 'qt6-svg')
makedepends=('make' 'autoconf' 'automake' 'git' 'glib2-devel')
optdepends+=('fauxdacious-plugins-git: needed for fauxdacious to run, but needs to be installed afterwards')
provides=("$_pkgname")
conflicts=("$_pkgname")
source=("${pkgname}::git+https://github.com/wildstar84/fauxdacious.git")
sha256sums=('SKIP')
pkgver() {
cd "${pkgname}"
# get the version out of the configure.ac file and add commit count
_versionDash=$(grep AC_INIT configure.ac | sed -E "s/.*\[(.*)\], \[(.*)\].*/\2/")
#_version=${_versionDash//-/}
_versionBase=${_versionDash%%-*}
#_versionSuffix=${_versionDash#*-}
_commits=$(git rev-list --count HEAD)
echo "${_versionBase}.r${_commits}"
#echo "${_version}.r${_commits}"
}
prepare() {
cd "${pkgname}"
# configure autoreconf
aclocal -I /usr/share/gettext/m4
autoreconf -fvi
# configure the build environment with scripts from upstream
./autogen.sh
./configure --prefix=/usr --with-buildstamp=$(date +%Y%m%d)
}
build() {
cd "${pkgname}"
make
}
package() {
#depends+=('fauxdacious-plugins-git')
cd "${pkgname}"
make DESTDIR=${pkgdir} install
install -Dm644 ./contrib/fauxdacious.appdata.xml -t "$pkgdir/usr/share/metainfo"
install -Dm644 ./COPYING -t "$pkgdir/usr/share/licenses/$_pkgname"
msg "NOTE: Do not forget to also install 'fauxdacious-plugins[-git]', else fauxdacious will not work!"
}
|