summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 580ba635dc1622a523f9702522cc6542bb58c656 (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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#
# PKGBUILD for IceBroLite
#
# Maintainer: Uffe Jakobsen <microtop@starion.dk>
#

_pkgname=IceBroLite
_pkgver=main
#_commit=fed95a77b995fc594c83d84eee073af1a396cf2b

pkg_ident="${_pkgver//_/-}"
pkg_name_ver="${_pkgname}-${_pkgver//_/-}"

#pkg_ident="${_commit}"
#pkg_name_ver="${_pkgname}-${_commit}"

pkg_name_dir="${pkg_name_ver}"

pkgname=icebrolite-git
pkgver=fef87496
pkgrel=1
pkgdesc="External Debugger for VICE Commodore (C64) emulator"
arch=('i686' 'x86_64')
url="https://github.com/Sakrac/IceBroLite"
license=('GPL')
makedepends=('make' 'gcc' 'pkgconf')
depends=('glfw')
optdepends=()
provides=()
conflicts=(${pkgname})
source=("${_pkgname}-${_pkgver}.tar.gz::https://github.com/Sakrac/${_pkgname}/archive/${_pkgver}.tar.gz")
md5sums=('SKIP')


#
#
#
pkgver()
{
  cd "${srcdir}/${pkg_name_dir}"
  git ls-remote -h "${url}" refs/heads/main | tr -s '[:blank:]' ' ' | cut -c1-8
  #(
  #  set -o pipefail
  #  git describe --long --tags 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
  #  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  #)
}

#
#
#
prepare()
{
  cd "${srcdir}/${pkg_name_dir}"
  #patch -p0 < "${startdir}/patch-Makefile.diff"
}

#
#
#
build()
{
  cd "${srcdir}/${pkg_name_dir}"
  make -C src
}

#
#
#
package()
{
  cd "${srcdir}/${pkg_name_dir}"
  install -m 755 -D "IceBroLite.exe" "${pkgdir}/usr/bin/icebrolite"
}

#
# EOF
#