summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8521efd4334633898b2a0418ae817273d4fc46cc (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
#
# PKGBUILD for cpctools
#
# Contributor: Uffe Jakobsen <microtop@starion.dk>
# Maintainer: Uffe Jakobsen <microtop@starion.dk>
#

pkgname=cpctools
pkgver=0.3.3
pkgrel=1
epoch=
pkgdesc="Amstrad CPC tools for cross development"
arch=('i686' 'x86_64')
_pkgname=cpctools
url="https://github.com/cpcsdk/cpctools"
license=('GPL2')
#groups=()
#makedepends=('procps-ng')
depends=('libdsk')
checkdepends=()
#optdepends=()
provides=('cpctools')
#conflicts=()
#replaces=()
#backup=()
#options=()
#install=
#changelog=

source=(https://github.com/cpcsdk/${pkgname}/archive/refs/tags/v${pkgver}.tar.gz)

#noextract=()

sha256sums=('0de00c95e671b349a25e4b875f4981ab38c1fd6c7184095872637cd53f82a7a7')

BUILD_DIR="_build.out"

#
#
#

prepare()
{
  cd "${srcdir}/${_pkgname}-${pkgver}"
}

build()
{
  cd "${srcdir}/${_pkgname}-${pkgver}"
  cmake -S cpctools -B "${BUILD_DIR}" -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release
  cmake --build "${BUILD_DIR}"
}

check()
{
  cd "${srcdir}/${_pkgname}-${pkgver}"
  #make -k check
}

package()
{
  cd "${srcdir}/${_pkgname}-${pkgver}"
  DESTDIR="${pkgdir}" cmake --install "${BUILD_DIR}"
  mkdir -p "${pkgdir}/usr/share/doc/"
  mv "${pkgdir}/usr/docs" "${pkgdir}/usr/share/doc/${pkgname}"
}

#
# EOF
#