diff options
| author | Dmitry Ilvokhin <d@ilvokhin.com> | 2026-01-01 18:40:59 +0000 |
|---|---|---|
| committer | Dmitry Ilvokhin <d@ilvokhin.com> | 2026-01-01 18:40:59 +0000 |
| commit | 5f84e2c909b3cf1a811ea948980ecf0867dbbf63 (patch) | |
| tree | 9ca233b420b426f47acb57a268a594eebc710a08 | |
| parent | 2e4db2894ec08bd3f21ff8986d410d072b712d35 (diff) | |
| download | packages-5f84e2c909b3cf1a811ea948980ecf0867dbbf63.tar.gz packages-5f84e2c909b3cf1a811ea948980ecf0867dbbf63.tar.bz2 packages-5f84e2c909b3cf1a811ea948980ecf0867dbbf63.zip | |
Add PKGBUILD for epgtrim
| -rw-r--r-- | epgtrim/PKGBUILD | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/epgtrim/PKGBUILD b/epgtrim/PKGBUILD new file mode 100644 index 0000000..1082cd3 --- /dev/null +++ b/epgtrim/PKGBUILD @@ -0,0 +1,28 @@ +# Maintainer: Dmitry Ilvokhin <d@ilvokhin.com> + +_reponame=misc +pkgname=epgtrim +pkgver=1.0.0 +pkgrel=1 +pkgdesc='Tool to trim EPG for specified playlist URL' +url="https://git.ilvokhin.com/{$_reponame}.git/tree/epgtrim" +arch=(x86_64) +license=(MIT) +makedepends=(git go) +source=("git+https://git.ilvokhin.com/${_reponame}.git#tag=${pkgname}/v${pkgver}") +sha512sums=('c217ae7c5f69a2260f1f51860786818d4d4f4b50a68beb6d36c07b621f435f12aa11d337dc8962acfeed87cccb6a63053526010d8cda16b2cbc67bc91b5ba7ce') + +build() { + cd "${_reponame}/${pkgname}" + go build -o bin/epgtrim +} + +check() { + cd "${_reponame}/${pkgname}" + go test +} + +package() { + cd "${_reponame}/${pkgname}" + install -D --mode=0755 bin/epgtrim "${pkgdir}/usr/bin/epgtrim" +} |