summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 097aff8265590eb98fbc740aa767bd6e00697ca7 (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
41
42
43
44
45
46
47
48
49
50
51
##
## The following variables can be customized at build time. Use env or export to change at your wish
##
##   Example: env USE_LIBUI=yes USE_UDISKS2=yes makepkg -sc
##
## Should GTK3 be used
if [ -z ${USE_LIBUI+x} ]; then
  USE_LIBUI=no
fi
## Should UDISKS2 be used
if [ -z ${USE_UDISKS2+x} ]; then
  USE_UDISKS2=no
fi

pkgname=usbimager-git
pkgver=1.0.4.r0.g1cfeeb8
pkgrel=2
pkgdesc="USBImager is a really really simple GUI application that writes compressed disk images to USB drives and creates backups."
arch=('i686' 'x86_64' 'armv7h')
url="https://gitlab.com/bztsrc/usbimager"
license=('MIT')
depends=('libx11' 'libxdmcp' 'libxcb')
optdepends=('gtk3' 'pango' 'harfbuzz' 'gdk-pixbuf2' 'udisks2')
makedepends=('git')
conflicts=('usbimager')
provides=('usbimager')
# The git repo is detected by the 'git:' or 'git+' beginning. The branch
# '$pkgname' is then checked out upon cloning, expediating versioning:
#source=('git+https://github.com/falconindy/expac.git'
source=("$pkgname"::'git+https://gitlab.com/bztsrc/usbimager.git')
# Because the sources are not static, skip Git checksum:
md5sums=('SKIP')
install="${pkgname}.install"

pkgver() {
  cd "$srcdir/$pkgname"
  # Use the tag of the last commit
  git describe --long | sed -E 's/([^-]*-g)/r\1/;s/-/./g'
}

build() {
  cd "$srcdir/$pkgname/src"

  make
}

package() {
  cd "$srcdir/$pkgname/src"
  mkdir -p $pkgdir/usr/bin
  make PREFIX=/usr DESTDIR=$pkgdir install
}