summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 56890e0159d7b27de3e3ba05dad333027ccf85a3 (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
# maintainer: libele <libele@disroot.org>

pkgname=tweego-bin
_binpkg=tweego
pkgver=2.1.1
pkgrel=1
pkgdesc="a command line compiler for Twine/Twee story formats, written in Go."
arch=('i686' 'x86_64')
url='https://www.motoslave.net/tweego'
license=('BSD' 'custom')
provides=('tweego')
conflicts=('tweego')
source_i686=("https://github.com/tmedwards/tweego/releases/download/v${pkgver}/tweego-${pkgver}-linux-x86.zip")
source_x86_64=("https://github.com/tmedwards/tweego/releases/download/v${pkgver}/tweego-${pkgver}-linux-x64.zip")
md5sums_i686=('99155762268a8b89868de8dfed3dcb0f')
md5sums_x86_64=('6ebec69142cc6aa9501b82b141da04cc')

package() {
  cd "${srcdir}"
  install -dm755 "${pkgdir}/usr/bin"
  install -Dm755 tweego "${pkgdir}/usr/share/${_binpkg}/${_binpkg}"

  ln -s "/usr/share/${_binpkg}/${_binpkg}" "${pkgdir}/usr/bin/${_binpkg}"
  cp -a storyformats "${pkgdir}/usr/share/${_binpkg}"

  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${_binpkg}/LICENSE"
  cp -a licenses "${pkgdir}/usr/share/licenses/${_binpkg}"
}