Skip to content
Snippets Groups Projects
PKGBUILD 974 B
Newer Older
# Maintainer: Balló György <ballogyor+arch at gmail dot com>
# Contributor: Giovanni Scafora <giovanni@archlinux.org>
Giovanni Scafora's avatar
Giovanni Scafora committed
# Contributor: archtux <antonio.arias99999 at gmail.com>

pkgname=converseen
Antonio Rojas's avatar
Antonio Rojas committed
pkgver=0.9.9.4
Antonio Rojas's avatar
Antonio Rojas committed
pkgrel=1
Balló György's avatar
Balló György committed
pkgdesc='Batch image converter and resizer'
arch=('x86_64')
Balló György's avatar
Balló György committed
url='http://converseen.fasterland.net/'
Giovanni Scafora's avatar
Giovanni Scafora committed
license=('GPL3')
depends=('hicolor-icon-theme' 'imagemagick' 'qt5-base')
makedepends=('cmake' 'qt5-tools') 
Antonio Rojas's avatar
Antonio Rojas committed
source=("https://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2")
Antonio Rojas's avatar
Antonio Rojas committed
sha256sums=('f8b727075fe5ed491db5df1646cee39b47443bedcbb9edf0cf41376b54591042')
Giovanni Scafora's avatar
Giovanni Scafora committed

Balló György's avatar
Balló György committed
prepare() {
Balló György's avatar
Balló György committed
  convert res/converseen.png +set date:create +set date:modify -resize 256x256 -alpha on res/converseen.png
  sed -i 's|/share/pixmaps|/share/icons/hicolor/256x256/apps|' CMakeLists.txt
Balló György's avatar
Balló György committed
}

build() {
  cmake -B build -S $pkgname-$pkgver \
    -DCMAKE_INSTALL_PREFIX=/usr
  cmake --build build
Giovanni Scafora's avatar
Giovanni Scafora committed
}

package() {
  DESTDIR="$pkgdir" cmake --install build
Giovanni Scafora's avatar
Giovanni Scafora committed
}