summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bb2720d2e79541934eb1a7de5c213f374ab26123 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Maintainer: Gustavo Alvarez <sl1pkn07@gmail.com>
# Contributor: garion < garion @ mailoo.org >

pkgname=mkclean
pkgver=0.9.0
pkgrel=1
pkgdesc="Clean up and optimize MKV files"
arch=('x86_64')
url='https://www.matroska.org/downloads/mkclean.html'
license=('BSD')
depends=('glibc')
makedepends=('cmake')
source=("https://sourceforge.net/projects/matroska/files/mkclean/mkclean-${pkgver}.tar.bz2")
sha256sums=('2f5cdcab0e09b65f9fef8949a55ef00ee3dd700e4b4050e245d442347d7cc3db')

build() {
  cmake -S "mkclean-${pkgver}" -B build \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX=/usr

  cmake --build build
}

package() {
  install -Dm755 build/mkclean/mkclean "${pkgdir}/usr/bin/mkclean"
  install -Dm644 "mkclean-${pkgver}/ReadMe.txt" "${pkgdir}/usr/share/licenses/${pkgname}/License.txt"
}