updated on Wed Jan 11 00:07:16 UTC 2012
[aur-mirror.git] / owx / PKGBUILD
blobd28c4d6c36f51b30963425320c61dbc15d7b11d3
1 # Contributor: [Vitaliy Berdinskikh](mailto:ur6lad@archlinux.org.ua) aka UR6LAD
3 pkgname=owx
4 pkgver=20110701
5 pkgrel=1
6 pkgdesc="Commad line tool for Wouxun. Utility downloads binary memory map from Wouxun radio to file and uploads this file to the radio. This map contains all settings, channels, locks etc."
7 arch=('i686' 'x86_64')
8 url="http://owx.chmurka.net"
9 license=('custom:beerware')
10 makedepends=('gcc' 'sed')
11 replaces=('wouxun')
12 source=($url/files/${pkgname}-current.tar.gz LICENSE)
14 build() {
15         cd $srcdir/${pkgname}-${pkgver}/src
17         # version as the package version
18         sed -i -e s:SVN:${pkgver}: version.h
19         make
22 package() {
23         mkdir -p $pkgdir/usr/{bin,libexec}
24         mkdir -p $pkgdir/usr/share/{doc/$pkgname,licenses/$pkgname}
26         cd $srcdir
27         install -m 644 LICENSE $pkgdir/usr/share/licenses/$pkgname
29         cd ${pkgname}-${pkgver}/docs
30         install -m 644 * $pkgdir/usr/share/doc/$pkgname
32         cd ../src
33         install -D -m 755 $pkgname $pkgdir/usr/libexec/$pkgname
34         ln -sf ../libexec/$pkgname $pkgdir/usr/bin/$pkgname-check
35         ln -sf ../libexec/$pkgname $pkgdir/usr/bin/$pkgname-get
36         ln -sf ../libexec/$pkgname $pkgdir/usr/bin/$pkgname-put
37         ln -sf ../libexec/$pkgname $pkgdir/usr/bin/$pkgname-export
38         ln -sf ../libexec/$pkgname $pkgdir/usr/bin/$pkgname-import
41 md5sums=('e9dfb0349a2b8144f2d175fbec0251f9'
42          '04c8deadd6984048760870d0fb397f25')
43 sha256sums=('43c14704e7d7346237c4e4a38dd9216f2432c7bc596756b53e4582b0471a1f2d'
44             'fd0d0ebbd3437872fe147bc5c86a25234b1d166f6bb6f9399900ca2aebb78ec2')