packages/packages/imgcomp/PKGBUILD

32 lines
637 B
Bash
Raw Permalink Normal View History

2022-05-28 18:21:19 +00:00
# Maintainer: MedzikUser <nivua1fn@duck.com>
pkgname='imgcomp'
2022-05-28 19:13:15 +00:00
pkgver="0.1.1"
2022-05-28 19:49:04 +00:00
pkgrel=2
2022-05-28 18:21:19 +00:00
pkgdesc='Cross platform image compressing tool'
arch=('x86_64')
url="https://github.com/rafi612/imgcomp"
license=('MIT')
makedepends=('cmake' 'git')
source=("${pkgname}::git+${url}#tag=${pkgver}")
sha256sums=('SKIP')
prepare() {
mkdir "${pkgname}/build"
cd "${pkgname}"
git submodule init
git submodule update
}
build() {
cd "${pkgname}/build"
cmake ..
make
}
package() {
cd "${pkgname}/build"
make DESTDIR="${pkgdir}" install
install -Dm 644 "${srcdir}/${pkgname}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}