summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4561d819c10339858292d0e80f3a061823984b03 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Maintainer: alessandro (gort818) <gort818@gmail.com>

pkgname=ddgtk
pkgver=0.1.r16.g82f07e1
pkgrel=1
pkgdesc='A frontend Gui to dd for making bootable usb disks'
arch=('any')
license=('GPL3')
url="https://github.com/gort818/${pkgname%-git}"
depends=('python3' 'python-gobject' 'gtk3')
makedepends=('git' 'meson')
source=('ddgtk::git+https://github.com/gort818/ddgtk#branch=master')
sha1sums=('SKIP')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")

pkgver() {
	cd "${pkgname%-git}"
	git describe --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
	cd "$srcdir/${pkgname%-git}"
	mkdir build
	cd "$srcdir/${pkgname%-git}/build"
	meson
	ninja
}
package() {
    cd "$srcdir/${pkgname%-git}/build"
    DESTDIR="$pkgdir" ninja install
}