From d14f07d6d88a2d3d7aea4c373f1e98a54ddb31bf Mon Sep 17 00:00:00 2001 From: Soumadip Das Date: Thu, 22 Jan 2026 01:45:11 +0530 Subject: [PATCH] Initial release --- .SRCINFO | 15 +++++++++++++++ PKGBUILD | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 .SRCINFO create mode 100644 PKGBUILD diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000000000..4ec300e286c23 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = autotitle + pkgdesc = Automated anime episode renaming tool with MAL integration + pkgver = 0.2.0 + pkgrel = 1 + url = https://github.com/soymadip/autotitle + arch = x86_64 + license = GPL3 + makedepends = go + makedepends = git + depends = glibc + backup = etc/autotitle/config.yml + source = git+https://github.com/soymadip/autotitle.git#tag=v0.2.0 + sha256sums = SKIP + +pkgname = autotitle diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000000000..6e73a03f92e5c --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: soymadip +pkgname=autotitle +pkgver=0.2.0 +pkgrel=1 +pkgdesc="Automated anime episode renaming tool with MAL integration" +arch=('x86_64') +url="https://github.com/soymadip/autotitle" +license=('GPL3') +depends=('glibc') +makedepends=('go' 'git') +source=("git+$url.git#tag=v$pkgver") +sha256sums=('SKIP') +backup=('etc/autotitle/config.yml') + +build() { + cd "$pkgname" + export CGO_CPPFLAGS="${CPPFLAGS}" + export CGO_CFLAGS="${CFLAGS}" + export CGO_CXXFLAGS="${CXXFLAGS}" + export CGO_LDFLAGS="${LDFLAGS}" + export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw" + + make release +} + +package() { + cd "$pkgname" + install -Dm755 "bin/autotitle" "$pkgdir/usr/bin/autotitle" + install -Dm644 "src/config.yml" "$pkgdir/etc/autotitle/config.yml" + + install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + install -Dm644 "README.md" "$pkgdir/usr/share/doc/$pkgname/README.md" +}