summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 92adb3b381588b453a78aaf5b89c788c859f11dc (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
33
34
35
36
37
38
39
40
# Maintainer: Nikola Hadžić <nikola@firemail.cc>
pkgname="nixwriter"
pkgver=0.1
pkgrel=1
epoch=
pkgdesc="Create bootable Linux images with dd and from a GTK user interface"
arch=("x86_64")
url="https://gitlab.com/9898287/nixwriter"
license=("MIT")
groups=()
depends=("gtk3" "polkit" "util-linux") 
makedepends=("ldc" "libphobos" "dub")
checkdepends=()
optdepends=("libnotify: notifications")
provides=()
conflicts=()
replaces=()
backup=()
options=()
source=("git+https://gitlab.com/9898287/nixwriter.git")
noextract=("git+https://gitlab.com/9898287/nixwriter.git")
sha256sums=("SKIP")

prepare() {
	cd "$srcdir/$pkgname"
	git reset --hard "5b1dbf37f7caffcbe9f4dd3fb7cccb2e1141b3ca"
}

build() {
	cd "$srcdir/$pkgname"
	dub build -b release -defaultlib --compiler ldc
}

package() {
	cd "$srcdir/$pkgname"
	mkdir -vp "$pkgdir/usr/bin/"

	cp -v "bin/$pkgname" "$pkgdir/usr/bin/"
}