blob: 2c7e822f831563022b16f561b1765914337ba8b5 (
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
|
#Maintainer: Simon Eriksson <simon.eriksson.1187+aur AT gmail.com>
pkgname=libmikmod-n64-git
pkgver=r22.6053ce4
pkgrel=1
pkgdesc="A portable sound library (Nintendo 64)"
arch=('any')
url="https://github.com/networkfusion/libmikmod"
license=('LGPL')
makedepends=('git' 'mips64-elf-gcc-stage1')
depends=('libdragon')
provides=('libmikmod-n64')
conflicts=('libmikmod-n64')
options=('!buildflags' '!strip')
source=("git+https://github.com/N64-tools/libmikmod.git" "makefile.diff")
sha256sums=('SKIP'
'f074dc7855aa5338c41c17a86559ce6dbe9aa1109b5f7d5c88c9981d995b6a10')
pkgver() {
cd libmikmod
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd libmikmod
patch -p1 < "${srcdir}/makefile.diff"
}
build() {
cd libmikmod/n64
N64_INST=/usr make
}
package() {
cd libmikmod/n64
mkdir -p ${pkgdir}/usr/mips64-elf/{lib,include}
make INSTALLDIR="${pkgdir}/usr" install
}
|