# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
# Contributor: Dominika Liberda <ja@sdomi.pl>
pkgname=gparted
pkgver=1.6.0
pkgrel=0
pkgdesc="graphical partition editor for creating, reorganizing, and deleting disk partitions"
options="!check" # Requires eudev
url="https://gparted.sourceforge.net/"
arch="all"
license="GPL-2.0-or-later"
depends="e2fsprogs"
makedepends="
	gettext-dev
	gtkmm3-dev
	parted-dev
	polkit-dev
	util-linux-dev
	"
subpackages="$pkgname-doc $pkgname-lang"
source="https://downloads.sourceforge.net/project/gparted/gparted/gparted-$pkgver/gparted-$pkgver.tar.gz"

prepare(){
	default_prepare
	update_config_sub
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--disable-doc
	make
}

package() {
	make appdatadir=/usr/share/metainfo DESTDIR="$pkgdir" install
}

sha512sums="
359accfee955fb68131eb7b5737a2e74702abe2c29766ce07475a4c789983801ee129dec28b20c72d74210533423dfefd0626b794a540840ed0b36f0d71ccc60  gparted-1.6.0.tar.gz
"
