blob: 84c7732cc32d179694cdf10593ba399c12452e48 (
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
|
# Maintainer: MGislv <nocentinigabriele91@gmail.com>
# Contributor: mutantmonkey <aur@mutantmonkey.in>
pkgname=stag-git
pkgver=v1.0.r1.g0a158e7
pkgrel=1
pkgdesc="A public domain ncurses based audio file tagger"
arch=('i686' 'x86_64')
url="https://github.com/smabie/stag"
license=('custom')
depends=('ncurses' 'taglib')
makedepends=('git')
conflicts=('stag')
source=(git+https://github.com/smabie/stag)
sha256sums=('SKIP')
pkgver() {
cd stag
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd stag
sed -n '/Released into the public domain/p' README > LICENSE
export CFLAGS="$CFLAGS -ansi -pedantic -Wall -D_DEFAULT_SOURCE"
export LDFLAGS="${LDFLAGS/--as-needed,/} -L/usr/lib `taglib-config --libs` -ltag_c -lstdc++"
export CPPFLAGS="-I/usr/include `taglib-config --cflags`"
make
}
package() {
cd stag
install -Dm755 stag "$pkgdir"/usr/bin/stag
install -Dm644 stag.1 "$pkgdir"/usr/share/man/man1/stag.1
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/stag/LICENSE
}
|