Project

General

Profile

Bug / Feature #4968 ยป PKGBUILD

shugyousha, 31 March 2013 17:22

 
# Maintainer: danilo <gezuru *at* gmail *dot* com>
pkgname=pivote-bin
pkgver=1.3.2.0
pkgrel=1
pkgdesc='E-voting tool of the Swiss Pirate Party (binary)'
arch=(i686 x86_64)
url='http://projects.piratenpartei.ch/projects/pi-vote'
license=('BSD')
depends=('mono')
source=('http://projects.piratenpartei.ch/attachments/download/1327/PiVote_Client_Linux_x86_1.3.2.0.zip')
md5sums=('5e0c042180c2a2b7431aab0a618f7c38')


package() {
# Create directories
mkdir -p "${pkgdir}/usr/bin"
mkdir -p "${pkgdir}/usr/share/${pkgname}"
mkdir -p "${pkgdir}/usr/share/applications"

# Change file permissions
chmod -R a-x *

# Copy files
cp -R de-DE fr-FR *.dll *.config *.cfg *.pi-cert *.exe *.ttf "${pkgdir}/usr/share/${pkgname}/"
#install -D -m644 *.desktop "${pkgdir}/usr/share/applications/"
install -D -m644 License.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -D -m644 "Third Party.txt" "${pkgdir}/usr/share/licenses/${pkgname}/THIRDPARTY"

# Create startscripts
echo -e "#!/bin/bash\nmono /usr/share/${pkgname}/Pirate.PiVote.Client.exe" > "${pkgdir}/usr/bin/pivote-wizard"
echo -e "#!/bin/bash\nmono /usr/share/${pkgname}/Pirate.PiVote.Circle.exe" > "${pkgdir}/usr/bin/pivote-circle"
chmod +x "${pkgdir}/usr/bin/pivote-wizard"
chmod +x "${pkgdir}/usr/bin/pivote-circle"
}
    (1-1/1)