summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 36fd9118884bd455a87ddb0d6119206ad192116f (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: Teoh Han Hui <teohhanhui@gmail.com>

_pkgname=avdump3
pkgname=avdump3-bin
pkgver=8188_beta
pkgrel=1
pkgdesc='AniDB video/audio codec identification utility (command line version)'
arch=('any')
url='https://wiki.anidb.net/Avdump3'
license=('MIT' 'unknown')
depends=('dotnet-runtime')
makedepends=('unzip')
provides=('avdump3')
conflicts=('avdump3')
options=('!strip')
source=("http://static.anidb.net/client/${_pkgname}/${_pkgname}_${pkgver}.zip"
        "${_pkgname}_LICENSE-MIT::https://raw.githubusercontent.com/DvdKhl/AVDump3/master/LICENSE"
        "${_pkgname}.sh")
noextract=("${_pkgname}_${pkgver}.zip")
sha256sums=('71eea7ca81733c2115eabe122c3b6105cc33419eefb0e45730039d00eae553dd'
            '97cb91cadbde7356e309613e2ed99cffcaf323197285d089e94dc5b6adbb603c'
            '3e3ebf6e5bfc3a1253b4248c1737063287c87b27d1ac2a93f9673bf32bae2991')

prepare() {
    unzip -o "${_pkgname}_${pkgver}.zip" -d "${_pkgname}_${pkgver}"
}

package() {
    install -d "${pkgdir}/opt/${_pkgname}"
    install -d "${pkgdir}/usr/bin"
    install -d "${pkgdir}/usr/share/licenses/${_pkgname}"

    install -m644 "${_pkgname}_${pkgver}"/* -t "${pkgdir}/opt/${_pkgname}"
    install -m755 "${_pkgname}.sh" "${pkgdir}/usr/bin/${_pkgname}"
    install -m644 "${_pkgname}_LICENSE-MIT" "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE-MIT"
}