blob: 9a187d436246ba679f98c7a922892c7ab69df5c5 (
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
|
pkgname=libupse-kode54-git
pkgver=r22.46351eb
pkgrel=2
pkgdesc="UPSE: the unix playstation sound emulator (kode54's fork)"
arch=(i686 x86_64)
url='https://bitbucket.org/losnoco/libupse'
license=(GPL2 GPL3 BSD)
depends=(glibc zlib)
makedepends=(git)
provides=(libupse libupse-kode54)
conflicts=(libupse libupse-kode54)
source=(${pkgname}::git+https://bitbucket.org/losnoco/libupse.git makefile.patch LICENSE.BSD)
sha256sums=('SKIP'
'8b845895dce8519b121c08e60f7dbc74dc1ae3267d3affd765325372cf5e592b'
'd9d4f5d400a8e04b361a012ee5b96a77f51405ba3739f613d332095774110ce4')
pkgver() {
cd "$srcdir/$pkgname"
( set -o pipefail
git describe --long 2>/dev/null | sed -r 's/([^-]*-g)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
prepare() {
cd "$srcdir/$pkgname"
patch -p1 < "$srcdir"/makefile.patch
}
build() {
cd "$srcdir/$pkgname"
make
}
package() {
cd "$srcdir/$pkgname"
install -D -m644 -t "$pkgdir/usr/lib" libupse.so
install -D -m644 -t "$pkgdir/usr/include" upse.h upse-types.h upse-container-xsf.h upse-eventloop.h upse-module.h
install -D -m644 -t "$pkgdir/usr/share/licenses/$pkgname" "$srcdir"/LICENSE.BSD
}
# vim:set sw=2 et:
|