<filename>main/libde265/template.py
pkgname = "libde265"
pkgver = "1.0.8"
pkgrel = 0
build_style = "gnu_configure"
configure_args = ["--disable-option-checking"]
hostmakedepends = ["pkgconf", "automake", "libtool"]
pkgdesc = "Open H.265 codec implementation"
maintainer = "q66 <<EMAIL>>"
license = "LGPL-3.0-or-later"
url = "http://www.libde265.org"
source = f"https://github.com/strukturag/{pkgname}/archive/v{pkgver}.tar.gz"
sha256 = "c5ab61185f283f46388c700c43dc08606b0e260cd53f06b967ec0ad7a809ff11"

def pre_configure(self):
    self.do(self.chroot_cwd / "autogen.sh")

def post_install(self):
    # do not polute /usr/bin with junk
    for f in [
        "acceleration_speed", "bjoentegaard", "block-rate-estim",
        "gen-enc-table", "hdrcopy", "rd-curves", "tests", "yuv-distortion"
    ]:
        self.rm(self.destdir / "usr/bin" / f)

@subpackage("libde265-devel")
def _devel(self):
    return self.default_devel()

@subpackage("libde265-progs")
def _progs(self):
    return self.default_progs()

<filename>main/libde265/template.py
pkgname = "libde265"
pkgver = "1.0.8"
pkgrel = 0
build_style = "gnu_configure"
configure_args = ["--disable-option-checking"]
hostmakedepends = ["pkgconf", "automake", "libtool"]
pkgdesc = "Open H.265 codec implementation"
maintainer = "q66 <<EMAIL>>"
license = "LGPL-3.0-or-later"
url = "http://www.libde265.org"
source = f"https://github.com/strukturag/{pkgname}/archive/v{pkgver}.tar.gz"
sha256 = "c5ab61185f283f46388c700c43dc08606b0e260cd53f06b967ec0ad7a809ff11"

def pre_configure(self):
    self.do(self.chroot_cwd / "autogen.sh")

def post_install(self):
    # do not polute /usr/bin with junk
    for f in [
        "acceleration_speed", "bjoentegaard", "block-rate-estim",
        "gen-enc-table", "hdrcopy", "rd-curves", "tests", "yuv-distortion"
    ]:
        self.rm(self.destdir / "usr/bin" / f)

@subpackage("libde265-devel")
def _devel(self):
    return self.default_devel()

@subpackage("libde265-progs")
def _progs(self):
    return self.default_progs()

# do not polute /usr/bin with junk