# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gapk
pkgver=0.1
pkgrel=1
pkgdesc="simple GTK frontend for apk-tools"
url="https://github.com/ncopa/gapk"
arch="all"
license="GPL-2.0"
depends="apk-tools"
depends_dev=""
makedepends="$depends_dev gtk+3.0-dev"
install=""
subpackages=""
source="gapk-$pkgver.tar.gz::https://github.com/ncopa/gapk/archive/v$pkgver.tar.gz"

_builddir="$srcdir"/gapk-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="2f52a8474396b233a629457d93b771d5  gapk-0.1.tar.gz"
sha256sums="ab6f84cafb6c5ca32c03852408df6edc0179fdb5cdb62017b8f4ebe23ec9c91c  gapk-0.1.tar.gz"
sha512sums="003c837288796a8e23d2296f352b855df9feadbe3b34c9f5704925882e7e25b242e3adf6088d8072459ac871ca5bfdd6fb8016e0357b1234d374b946fa808edf  gapk-0.1.tar.gz"
