summaryrefslogtreecommitdiff
path: root/qxw/PKGBUILD
blob: d85916088d540c0681ff4860129010c5c6d9b802 (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
# Maintainer: Erich Eckner <arch at eckner dot net>
# Contributor: aksr <aksr at t-com dot me>
pkgname=qxw
pkgver=20200708
pkgrel=3
epoch=
pkgdesc="A program to help you create and publish crosswords."
arch=('i686' 'pentium4' 'x86_64')
url="https://www.quinapalus.com/qxw.html"
license=('GPL')
_pinned_dependencies=(
  'cairo=1.17.4'
  'glibc>=2.31'
  'libatk-1.0.so=0'
  'libfontconfig.so=1'
  'libfreetype.so=6'
  'libgdk_pixbuf-2.0.so=0'
  'libgdk-x11-2.0.so=0'
  'libgio-2.0.so=0'
  'libglib-2.0.so=0'
  'libgobject-2.0.so=0'
  'libgthread-2.0.so=0'
  'libgtk-x11-2.0.so=0'
  'libharfbuzz.so=0'
  'libpango-1.0.so=0'
  'libpangocairo-1.0.so=0'
  'libpangoft2-1.0.so=0'
  'pcre=8.44'
)
depends=('gtk2' "${_pinned_dependencies[@]}")
source=(https://www.quinapalus.com/$pkgname-$pkgver.tar.gz
        https://www.quinapalus.com/$pkgname-guide-$pkgver.pdf)
noextract=()
options=()
sha512sums=('77f83501c73679f6d7290eb6b09187c6adea1626bac938a8880b00bf7636340a6e423c7c2e2bcff78ae03651e4479d94d8c934772147b802c1ad26c5241c94cd'
            'a08b2fd1840795125dac5b4d50db2bc69102d64f3171256c7f535a46d1c8dc87e408a3dc4920803bc8cb0eaee9a284cf1b74457d50d5fbdbe5feb5a4048b4a12')
sha512sums=('77f83501c73679f6d7290eb6b09187c6adea1626bac938a8880b00bf7636340a6e423c7c2e2bcff78ae03651e4479d94d8c934772147b802c1ad26c5241c94cd'
            'a08b2fd1840795125dac5b4d50db2bc69102d64f3171256c7f535a46d1c8dc87e408a3dc4920803bc8cb0eaee9a284cf1b74457d50d5fbdbe5feb5a4048b4a12')
sha512sums=('77f83501c73679f6d7290eb6b09187c6adea1626bac938a8880b00bf7636340a6e423c7c2e2bcff78ae03651e4479d94d8c934772147b802c1ad26c5241c94cd'
            'a08b2fd1840795125dac5b4d50db2bc69102d64f3171256c7f535a46d1c8dc87e408a3dc4920803bc8cb0eaee9a284cf1b74457d50d5fbdbe5feb5a4048b4a12')

prepare() {
  cd "$srcdir/$pkgname-$pkgver"
  sed -i 's!usr/games!usr/bin!' Makefile
}

build() {
  cd "$srcdir/$pkgname-$pkgver"
  make
}

package() {
  cd "$srcdir/$pkgname-$pkgver"
  make DESTDIR="$pkgdir/" install
  install -Dm644 ../qxw-guide-${pkgver}.pdf $pkgdir/usr/share/doc/$pkgname/qxw-guide-${pkgver}.pdf
}