diff options
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | PKGBUILD | 51 |
2 files changed, 23 insertions, 42 deletions
@@ -1,19 +1,15 @@ pkgbase = nixwriter pkgdesc = Create bootable Linux images with dd and from a GTK user interface - pkgver = 0.1 - pkgrel = 2 + pkgver = 2.0.0 + pkgrel = 1 url = https://gitlab.com/9898287/nixwriter arch = x86_64 license = MIT - makedepends = ldc - makedepends = dub + makedepends = git + makedepends = cargo depends = gtk3 - depends = polkit - depends = util-linux optdepends = libnotify: notifications - noextract = git+https://gitlab.com/9898287/nixwriter.git - source = git+https://gitlab.com/9898287/nixwriter.git + source = git+https://gitlab.com/9898287/nixwriter.git#tag=2.0.0 sha256sums = SKIP pkgname = nixwriter - @@ -1,44 +1,29 @@ -# Maintainer: Nikola Hadžić <nikola@firemail.cc> -pkgname="nixwriter" -pkgver=0.1 -pkgrel=2 -epoch= +# Maintainer: Fabio 'Lolix' Loli <fabio.loli@disroot.org> +# Contributor: Nikola Hadžić <nikola@firemail.cc> + +pkgname=nixwriter +pkgver=2.0.0 +pkgrel=1 pkgdesc="Create bootable Linux images with dd and from a GTK user interface" -arch=("x86_64") +arch=(x86_64) url="https://gitlab.com/9898287/nixwriter" -license=("MIT") -groups=() -depends=("gtk3" "polkit" "util-linux") -makedepends=("ldc" "dub") -checkdepends=() +license=(MIT) +depends=(gtk3) +makedepends=(git cargo) optdepends=("libnotify: notifications") -provides=() -conflicts=() -replaces=() -backup=() -options=() -source=("git+https://gitlab.com/9898287/nixwriter.git") -noextract=("git+https://gitlab.com/9898287/nixwriter.git") +source=("git+https://gitlab.com/9898287/nixwriter.git#tag=${pkgver}") sha256sums=("SKIP") -prepare() { - cd "$srcdir/$pkgname" - git reset --hard "81cde3891ca62e2086785448b892e5a8d28830d9" -} - build() { - cd "$srcdir/$pkgname" - dub build -b release -defaultlib --compiler ldc + cd "$srcdir/$pkgname" + make } package() { - cd "$srcdir/$pkgname" - mkdir -vp "$pkgdir/usr/bin/" - mkdir -vp "$pkgdir/usr/share/icons/hicolor/48x48/apps/" - mkdir -vp "$pkgdir/usr/share/applications/" - - cp -v "bin/$pkgname" "$pkgdir/usr/bin/" - cp -v "resources/nixwriter.png" "$pkgdir/usr/share/icons/hicolor/48x48/apps/" - cp -v "resources/nixwriter.desktop" "$pkgdir/usr/share/applications/" + cd "$srcdir/$pkgname" + install -D target/release/nixwriter "${pkgdir}"/usr/bin/nixwriter + install -Dm644 com.gitlab.adnan338.Nixwriter.desktop "${pkgdir}"/usr/share/applications/com.gitlab.adnan338.Nixwriter.desktop + install -Dm644 com.gitlab.adnan338.Nixwriter.svg "${pkgdir}"/usr/share/icons/hicolor/scalable/apps/com.github.adnan338.Nixwriter.svg + install -D LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}" } |