summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMineralwater Xu <[email protected]>2021-10-20 21:29:02 +0800
committerMineralwater Xu <[email protected]>2021-10-20 21:33:01 +0800
commit9133936ea253ab17215d10bb24bb0e353dbacf82 (patch)
treeae4eb85b58c5d1fe4cc354fff157b68ff4de12f3
parentb6b79d20026bdffce4c29a5331594f3087bc3240 (diff)
addpkg: mkvautosubset 3.1.7-1
-rw-r--r--archlinuxmw/mkvautosubset/PKGBUILD32
1 files changed, 32 insertions, 0 deletions
diff --git a/archlinuxmw/mkvautosubset/PKGBUILD b/archlinuxmw/mkvautosubset/PKGBUILD
new file mode 100644
index 0000000..81a5d99
--- /dev/null
+++ b/archlinuxmw/mkvautosubset/PKGBUILD
@@ -0,0 +1,32 @@
+# Maintainer: Mineralwater Xu <[email protected]>
+pkgname=mkvautosubset
+pkgver=3.1.7
+pkgrel=1
+pkgdesc="Automatic fonts subset tool."
+arch=('x86_64')
+url="https://github.com/KurenaiRyu/MkvAutoSubset"
+license=('GPL3')
+depends=('python-fonttools' 'mkvtoolnix-cli')
+makedepends=('python' 'go')
+source=("https://github.com/KurenaiRyu/MkvAutoSubset/archive/refs/tags/v${pkgver}.tar.gz")
+sha256sums=('8689c61eaf3678c6f9b6ec1484649e7ae388fee06f3b35d6dde80e9ee4c3a322')
+
+prepare() {
+ mv v${pkgver}.tar.gz MkvAutoSubset-${pkgver}
+}
+build() {
+ cd "MkvAutoSubset-$pkgver/mkvtool"
+ go mod tidy
+ go build \
+ -trimpath \
+ -buildmode=pie \
+ -mod=readonly \
+ -modcacherw \
+ -ldflags "-linkmode external -extldflags \"${LDFLAGS}\""
+}
+
+package() {
+ cd "MkvAutoSubset-$pkgver"
+ install -Dm 755 "mkvtool/mkvtool" -t "${pkgdir}/usr/bin"
+ install -Dm 644 README*.md -t "${pkgdir}/usr/share/doc/${pkgname}"
+}