c/sampler renamed to Ghetto-SoundSystem ;-)
[mirrors/Programs.git] / bash / debian-ports / test / PKGBUILD
1 # Contributor: Your Name youremail at domain dot com
2 # This PKGBUILD was automatically generated and it will probably need few manual fixes
3
4 pkgname=sash
5 pkgver=3.7
6 pkgrel=1
7 pkgdesc='Port of Debian package sash to ArchLinux'
8 arch=('i686' 'x86_64')
9 url='http://ftp.de.debian.org/debian/pool/main/s/sash/sash_3.7-8.dsc'
10 license=('GPL')
11 #ArchLinux packages will probably have different names to Debian packages:
12 #depends=() #check ${srcdir}/${pkgname}-${pkgver}/control for info about depends
13 #makedepends=( zlib1g-dev (>= 1:1.2.2-7), cdbs, debhelper (>= 4.1.0), e2fslibs-dev )
14 #install=debian.install #uncomment if needed
15 source=(
16 http://ftp.de.debian.org/debian/pool/main/s/sash/sash_3.7-8.diff.gz
17 http://ftp.de.debian.org/debian/pool/main/s/sash/sash_3.7.orig.tar.gz
18 )
19 md5sums=(
20 #Make your own using md5sum *
21 )
22
23 build() {
24 srcsubdir=$(ls -1 --group-directories-first "$srcdir" | head -n 1) #guess it... ;)
25
26 echo -e "\n-------------------------------------------"
27 echo "==> Note you can check ${srcdir}/${srcsubdir}/debian/control for more info and run-time dependencies"
28 echo "==> and ${srcdir}/${srcsubdir}/debian/README.debian for even more info"
29 echo "==> Short version follows:"
30 cat "${srcdir}/${srcsubdir}/debian/control" | grep -i "^\(Depends\|Conflicts\|Suggests\|Description\):"
31 echo -e "-------------------------------------------\n"
32
33 cd "${srcdir}"
34
35 #Apply debian patch (which contains more patches lol)
36 #patch -p0 < ${pkgname}_${pkgver}.diff
37 patch -p0 < ${pkgname}*.diff #another ugly asterisk hack muhwahwa...
38
39 #cd ${srcdir}/${pkgname}-${pkgver}/
40 cd "${srcdir}/${srcsubdir}/"
41
42 #Apply Debian patches (if any ;o)
43 for i in $(cat ./debian/patches/00list); do
44 bash "./debian/patches/$i.dpatch" -patch
45 done;
46
47 #Debian install script (if any...)
48 cp ./debian/postinst "${startdir}/debian.install"
49
50 #real build() work here (you will probably need to edit this):
51 cd "${srcdir}/${srcsubdir}" || return 1
52 ./configure --prefix=/usr
53 make || return 1
54 make DESTDIR=$pkgdir install || return 1
55 }
56
This page took 0.716925 seconds and 4 git commands to generate.