summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f82f370fe33254d77ce813b8392dbd9476528182 (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
# Maintainer: Hezekiah Michael <spiritomb at protonmail dot com>

pkgdesc='A command line utility to merge, split and chapterize audiobook files such as mp3, ogg, flac, m4a or m4b'
pkgname=('m4b-tool-bin')
pkgver=0.5.1
pkgrel=3
arch=('x86_64')
license=('custom:MIT')
url="https://github.com/sandreas/m4b-tool"
makedepends=()
depends=(
  'ffmpeg'
  'libmp4v2'
  'php'
)
provides=('m4b-tool')
conflicts=('m4b-tool')
optdepends=(
  'fdkaac: to use fdkaac in conversions'
  'ffmpeg-libfdk_aac: to use fdkaac in conversions'
  'tone')
options=('!strip')
source=("m4b-tool.tar.gz::https://github.com/sandreas/m4b-tool/releases/download/v${pkgver}/m4b-tool-${pkgver}.tar.gz"
  "https://raw.githubusercontent.com/sandreas/m4b-tool/refs/tags/v${pkgver}/LICENSE")


# pkgver() {
#   cd ${srcdir}
#   # _dat=`stat --format=%y m4b-tool.phar | awk -F ' |\-' '{ print $1$2$3 }'`
#   _dat=`date -u -r m4b-tool.phar -Idate| awk -F '\-' '{ print $1$2$3 }'`
#   printf "0.4.2~$_dat"
# }

package() {
    cd ${srcdir}
	install -Dvm 755 dist/m4b-tool.phar "${pkgdir}/usr/bin/m4b-tool"
	install -Dvm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
}
sha256sums=('7a3bc03d19f24c3c8135690fbd0d5ca7b4982383aa815b05c79c4611c7789c32'
            'f4e10d52874360d5da10907ef1179e7064fbb1b1d51d1d548bb73d91afcfb65e')