summaryrefslogtreecommitdiff
path: root/qxw/PKGBUILD
blob: dd91fe4d4ed82d178570526256e0fcb4a482d538 (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=20190909
pkgrel=4
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.2+25+gaee96d175'
  'gdk-pixbuf2=2.40.0'
  'glibc>=2.31'
  'libatk-1.0.so=0'
  'libfontconfig.so=1'
  'libfreetype.so=6'
  '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=()
md5sums=('09f2bdec2b168768d9f7053d1e093ae4'
         'affec50cda6e8a0d7f7cab5e28eb643d')
sha1sums=('08f689cfc9d3dc3dfc7ef29a555421b78ffea2ef'
          '71cc3f2cedb5aaa2baa90002b015636f16424c9a')
sha256sums=('88fc1948f8cf10eafd2c40b86ead830e88a88621350fb89b88ab2d0a0e13cef0'
            '2e3ccc61d0d1a039f90b40096312178db1333c9101d4312f5a942596db3c6c71')

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
}