addpkg: imgcomp

This commit is contained in:
MedzikUser 2022-05-28 20:21:19 +02:00
parent 0100bf391b
commit 3d9886a63f
No known key found for this signature in database
GPG Key ID: A5FAC1E185C112DB
2 changed files with 32 additions and 0 deletions

31
packages/imgcomp/PKGBUILD Normal file
View File

@ -0,0 +1,31 @@
# Maintainer: MedzikUser <nivua1fn@duck.com>
pkgname='imgcomp'
pkgver='0.1.0'
pkgrel=1
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"
}

View File

@ -0,0 +1 @@
GITHUB_REPO="rafi612/imgcomp"