summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d927d182dad406a8de0e7bec5504aeca5398a2bc (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
# This is an example PKGBUILD file. Use this as a start to creating your own,
# and remove these comments. For more information, see 'man PKGBUILD'.
# NOTE: Please fill out the license field for your package! If it is unknown,
# then please put 'unknown'.

# Maintainer: Allenyou <cfan789123@126.com>
pkgname=oi-tools-allenyou
pkgver=1.0.1000r
pkgrel=1
epoch=0
pkgdesc="Tools for OIers by Allenyou."
arch=(any)
url="https://www.allenyou.wang"
license=('GPL3')
groups=()
depends=()
makedepends=()
checkdepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=("https://aurlib.allenyou.wang/$pkgname/$pkgname-$pkgver.tar.gz")
noextract=()
md5sums=('e2660dbaa051985d27f0723095db23fd')
validpgpkeys=()

build() {
	cd "$startdir"/src/"$pkgname-$pkgver"
	# cd src/"$pkgname-$pkgver"
	g++ ConsolePauser.cpp -o ConsolePauser
	g++ pause.cpp -o pause
}

package() {
	# cd "$pkgname-$pkgver"
	# make DESTDIR="$pkgdir/" install
	cd "$startdir"/src/"$pkgname-$pkgver"
	install -D -m=775 ConsolePauser "${pkgdir}/usr/bin/ConsolePauser"
	install -D -m=775 pause "${pkgdir}/usr/bin/pause"
}