summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9af1797ebba3c6521d339fc773bbcea4553567b8 (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
# Maintainer: Felipe Balbi <felipe@balbi.sh>
pkgname=sidreloc
pkgver=1.0
pkgrel=1
pkgdesc="SID Tunes Relocation Tool"
arch=('x86_64')
url="https://www.linusakesson.net/software/sidreloc/index.php"
license=('MIT')
depends=('gcc'
	 'make')
source=("https://hd0.linusakesson.net/files/${pkgname}-${pkgver}.tgz")
sha256sums=('8ca55fb4886bda2a499f837e2f9ffd0a4b7217ee7bb1907ceed9e87ef6157bf6')

prepare() {
  tar -zxf "sidreloc-1.0.tgz"
}

build() {
  make -C "${srcdir}"/"${pkgname}-${pkgver}"
  gzip "${srcdir}"/"${pkgname}-${pkgver}"/sidreloc.1
}

package() {
  mkdir -p "${pkgdir}"/usr/bin
  mkdir -p "${pkgdir}"/usr/share/man/man1

  install -Dm755 "${srcdir}"/"${pkgname}-${pkgver}"/sidreloc "${pkgdir}"/usr/bin/sidreloc
  install -g 0 -o 0 -Dm644 "${srcdir}"/"${pkgname}-${pkgver}"/sidreloc.1.gz "${pkgdir}"/usr/share/man/man1/
}