summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c2a1de7821c62488121bd8047da266173ed16e49 (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
# Maintainer: Dario Ostuni <another.code.996@gmail.com>
# Maintainer: Vincent Grande <shoober420@gmail.com>

pkgname=lib32-tslib
_pkgname=tslib
pkgver=1.21
pkgrel=1
pkgdesc="Touchscreen Access Library (32-bit)"
arch=('x86_64')
url="https://github.com/kergoth/tslib"
license=('GPL2')
depends=('lib32-glibc')
makedepends=()
source=("https://github.com/kergoth/tslib/releases/download/$pkgver/$_pkgname-$pkgver.tar.xz")
sha384sums=('fc007a0d6a1e811cc70c5882710413d87fb5ef30439c36e7b90652d776feca44245c6d5ccddb94efa0277c61378f4126')

build() {
  cd $_pkgname-$pkgver
  export CC="gcc -m32"
  export CXX="g++ -m32"
  export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
  ./autogen.sh
  ./configure --prefix=/usr --libdir=/usr/lib32 --sysconfdir=/etc
  make
}

package() {
  cd $_pkgname-$pkgver
  make DESTDIR="$pkgdir" install
  rm -rf "${pkgdir}"/usr/{include,share,bin}
  rm -rf "${pkgdir}"/etc
}