summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorTeoh Han Hui2021-03-11 00:26:58 +0800
committerTeoh Han Hui2021-03-11 00:26:58 +0800
commit098990d2d1982f83e3997305cdd9e83cae9e70df (patch)
treeeb39edceecba94bfdb08409ce6d00ad2f835aaf3 /PKGBUILD
downloadaur-098990d2d1982f83e3997305cdd9e83cae9e70df.tar.gz
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD36
1 files changed, 36 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..36fd9118884
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,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"
+}